javax.resource.spi
Class UnavailableException

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

public class UnavailableException
extends ResourceException (src)

Thrown when a service is unavailable

See Also:
Serialized Form

Constructor Summary
UnavailableException()
          Create an unavailable exception.
UnavailableException(java.lang.String reason)
          Create an unavailable exception with a reason.
UnavailableException(java.lang.String reason, java.lang.String errorCode)
          Create an unavailable exception with a reason and an errorCode.
UnavailableException(java.lang.String reason, java.lang.Throwable throwable)
          Create an unavailable exception with a reason and an error.
UnavailableException(java.lang.Throwable throwable)
          Create an unavailable exception with an error.
 
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

UnavailableException

public UnavailableException()
Create an unavailable exception.


UnavailableException

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

Parameters:
reason - the reason

UnavailableException

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

Parameters:
reason - the reason
errorCode - the error code

UnavailableException

public UnavailableException(java.lang.String reason,
                            java.lang.Throwable throwable)
Create an unavailable exception with a reason and an error.

Parameters:
reason - the reason
throwable - the error

UnavailableException

public UnavailableException(java.lang.Throwable throwable)
Create an unavailable exception with an error.

Parameters:
throwable - the error