org.schmant.lang
Class SchmantException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.schmant.lang.SchmantException
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- ArgumentInterpretationException, FutureEntityNotCreatedYetException, InvalidArgumentException, InvalidTaskConfigurationException, NoSuchEnabledTaskPackageException, ReplaceNotFoundException, TaskFailedException, TaskPackageNotFoundException, WrongEntityTypeException
public class SchmantException
- extends RuntimeException
This is the base class for all Schmant exceptions. It inherits RuntimeException
which makes all Schmant exceptions unchecked.
- Since:
- 0.5
- Author:
- Karl Gustafsson
- See Also:
- Serialized Form
Method Summary |
boolean |
testAndSetLogged()
Sets the value of the logged flag to true and returns the
previous value. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
SchmantException
public SchmantException(String msg)
SchmantException
public SchmantException(Throwable t)
SchmantException
public SchmantException(String msg,
Throwable t)
testAndSetLogged
public boolean testAndSetLogged()
- Sets the value of the logged flag to
true
and returns the
previous value.
- Returns:
- The previous value of the
logged
flag.