org.sape.carbon.core.exception
Class IllegalStateException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--java.lang.RuntimeException
|
+--org.sape.carbon.core.exception.BaseRuntimeException
|
+--org.sape.carbon.core.exception.IllegalStateException
- All Implemented Interfaces:
- Exceptionable, Serializable
- public class IllegalStateException
- extends BaseRuntimeException
This exception is to be used when it is detected that the system is in an
invalid state. For example, when an object is expected to have been
configured, but is wasn't.
Copyright 2002 Sapient
- Since:
- carbon 1.0
- Version:
- $Revision: 1.6 $($Author: dvoet $ / $Date: 2003/05/05 21:21:21 $)
- Author:
- Douglas Voet, March 2002
- See Also:
- Serialized Form
Fields inherited from class java.lang.Throwable |
|
Method Summary |
SeverityEnum |
getSeverity()
This method must be overriden by subclasses so that
they may declare their severity |
IllegalStateException
public IllegalStateException(Class sourceClass,
String message)
- Constructor for InvalidParameterException.
- Parameters:
sourceClass
- message
-
IllegalStateException
public IllegalStateException(Class sourceClass,
String message,
Throwable cause)
- Constructor for InvalidParameterException.
- Parameters:
sourceClass
- message
- cause
-
getSeverity
public SeverityEnum getSeverity()
- Description copied from class:
BaseRuntimeException
- This method must be overriden by subclasses so that
they may declare their severity
- Specified by:
getSeverity
in interface Exceptionable
- Specified by:
getSeverity
in class BaseRuntimeException
- Returns:
- the severity of this exception
Copyright 1999-2003 Sapient Corporation. All Rights Reserved.