org.sape.carbon.core.component.lifecycle
Class InvalidStateException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--org.sape.carbon.core.exception.BaseRuntimeException
                          |
                          +--org.sape.carbon.core.component.ComponentException
                                |
                                +--org.sape.carbon.core.component.lifecycle.LifecycleException
                                      |
                                      +--org.sape.carbon.core.component.lifecycle.InvalidStateException
All Implemented Interfaces:
Exceptionable, Serializable

public class InvalidStateException
extends LifecycleException

Indicates that the component is in an unexpected state. Copyright 2002 Sapient

Since:
carbon 1.0
Version:
$Revision: 1.11 $($Author: dvoet $ / $Date: 2003/05/05 21:21:13 $)
Author:
Chris Herron, January 2002
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.sape.carbon.core.exception.BaseRuntimeException
delegatedException
 
Fields inherited from class java.lang.RuntimeException
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
InvalidStateException(Class sourceClass, String message)
          Constructor for InvalidStateException.
InvalidStateException(Class sourceClass, String message, Throwable cause)
          Constructor for InvalidStateException.
 
Method Summary
 SeverityEnum getSeverity()
          Retrieves the severity of this exception.
 
Methods inherited from class org.sape.carbon.core.exception.BaseRuntimeException
getCause, getExceptionSource, getMessage, toString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InvalidStateException

public InvalidStateException(Class sourceClass,
                             String message)
Constructor for InvalidStateException.

Parameters:
sourceClass - the source of the failure
message - a string describing the failure

InvalidStateException

public InvalidStateException(Class sourceClass,
                             String message,
                             Throwable cause)
Constructor for InvalidStateException.

Parameters:
sourceClass - the source of the failure
message - a string describing the failure
cause - the exception that caused the failure
Method Detail

getSeverity

public SeverityEnum getSeverity()
Retrieves the severity of this exception. This exception defaults to an ERROR level exception.

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.