org.schmant.lang
Class SchmantException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by 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

Constructor Summary
SchmantException(String msg)
           
SchmantException(String msg, Throwable t)
           
SchmantException(Throwable t)
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SchmantException

public SchmantException(String msg)

SchmantException

public SchmantException(Throwable t)

SchmantException

public SchmantException(String msg,
                        Throwable t)
Method Detail

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.