javax.resource.spi
Class IllegalStateException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjavax.resource.ResourceException (src) 
              extended byjavax.resource.spi.IllegalStateException
All Implemented Interfaces:
java.io.Serializable

public class IllegalStateException
extends ResourceException (src)

A IllegalStateException is thrown when a method has been invoked on an object which is in the wrong state to execute the method.

See Also:
Serialized Form

Constructor Summary
IllegalStateException()
          Create an exception.
IllegalStateException(java.lang.String reason)
          Create an exception with a reason.
IllegalStateException(java.lang.String reason, java.lang.String errorCode)
          Create an exception with a reason and an errorCode.
IllegalStateException(java.lang.String reason, java.lang.Throwable cause)
          Create an exception with a reason and cause.
IllegalStateException(java.lang.Throwable cause)
          Create an exception with a cause.
 
Methods inherited from class javax.resource.ResourceException (src)
getErrorCode, getLinkedException, getMessage, setErrorCode, setLinkedException
 
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
 

Constructor Detail

IllegalStateException

public IllegalStateException()
Create an exception.


IllegalStateException

public IllegalStateException(java.lang.String reason)
Create an exception with a reason.


IllegalStateException

public IllegalStateException(java.lang.String reason,
                             java.lang.String errorCode)
Create an exception with a reason and an errorCode.


IllegalStateException

public IllegalStateException(java.lang.String reason,
                             java.lang.Throwable cause)
Create an exception with a reason and cause.

Parameters:
reason - the reason
cause - the cause

IllegalStateException

public IllegalStateException(java.lang.Throwable cause)
Create an exception with a cause.

Parameters:
cause - the cause