com.redstarhackers.exception
Class InvalidStateException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended bycom.redstarhackers.exception.SystemException
                  extended bycom.redstarhackers.exception.InvalidStateException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
InvalidConfigurationException

public class InvalidStateException
extends SystemException

Exception thrown when the current state invalid (usually the result of a Runtime error or logic error in the application). These exceptions are usually the sign of a misconfigured application or bug in the application, as they are usually only thrown when the current state is outside a valid set of states, and the current state was not expected.

Version:
$Revision: 1.1 $
Author:
$Author: kostya $
See Also:
Serialized Form

Field Summary
static ErrorCode STATE_DEFAULT_ERROR_CODE
           
 
Fields inherited from class com.redstarhackers.exception.SystemException
SYS_DEFAULT_ERROR_CODE
 
Constructor Summary
InvalidStateException()
           
InvalidStateException(ErrorCode code)
           
InvalidStateException(ErrorCode code, java.lang.String details)
           
InvalidStateException(ErrorCode code, java.lang.String details, java.lang.Throwable rootCause)
           
InvalidStateException(ErrorCode code, java.lang.Throwable rootCause)
           
InvalidStateException(java.lang.String details)
           
InvalidStateException(java.lang.String details, java.lang.Throwable rootCause)
           
InvalidStateException(java.lang.Throwable rootCause)
           
 
Methods inherited from class com.redstarhackers.exception.SystemException
getDetails, getErrorCode, getErrorMessage, getMessage
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

STATE_DEFAULT_ERROR_CODE

public static final ErrorCode STATE_DEFAULT_ERROR_CODE
Constructor Detail

InvalidStateException

public InvalidStateException()

InvalidStateException

public InvalidStateException(ErrorCode code)
Parameters:
code -

InvalidStateException

public InvalidStateException(ErrorCode code,
                             java.lang.String details)
Parameters:
code -
details -

InvalidStateException

public InvalidStateException(java.lang.String details)
Parameters:
details -

InvalidStateException

public InvalidStateException(java.lang.Throwable rootCause)
Parameters:
rootCause -

InvalidStateException

public InvalidStateException(ErrorCode code,
                             java.lang.Throwable rootCause)
Parameters:
code -
rootCause -

InvalidStateException

public InvalidStateException(java.lang.String details,
                             java.lang.Throwable rootCause)
Parameters:
details -
rootCause -

InvalidStateException

public InvalidStateException(ErrorCode code,
                             java.lang.String details,
                             java.lang.Throwable rootCause)
Parameters:
code -
details -
rootCause -