java.lang
Class ResourceException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--java.lang.ResourceException
All Implemented Interfaces:
Serializable

public class ResourceException
extends RuntimeException

ResourceException is thrown when the resource requirements required for an action cannot be fulfilled.

The conditions leading to this exception may be transient or permanent depending on the action and the resource involved. Refer to the specific documentation for the constructor or method in question.

Note that resource in the context of this exception is defined as something required for program operation and which the lack thereof causes a performance change.

Since:
1.5
See Also:
Serialized Form

Constructor Summary
ResourceException()
          Constructs a ResourceException with no specified detail message and null remote exception information.
ResourceException(String detail)
          Constructs a ResourceException with specified detail message and null remote exception information.
ResourceException(String detail, Throwable cause)
          Constructs a ResourceException that wraps the specified throwable and provides the given detail message.
ResourceException(Throwable cause)
          Constructs a ResourceException that wraps the specified throwable.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResourceException

public ResourceException()
Constructs a ResourceException with no specified detail message and null remote exception information.


ResourceException

public ResourceException(String detail)
Constructs a ResourceException with specified detail message and null remote exception information.

Parameters:
detail - Detailed information about the exception

ResourceException

public ResourceException(Throwable cause)
Constructs a ResourceException that wraps the specified throwable.

Parameters:
cause - the cause (which is saved for later retrieval by the getCause() method). (A null value is permitted and indicates that the cause is nonexistent or unknown.)

ResourceException

public ResourceException(String detail,
                         Throwable cause)
Constructs a ResourceException that wraps the specified throwable and provides the given detail message.

Parameters:
detail - Detailed information about the exception
cause - the cause (which is saved for later retrieval by the getCause() method). (A null value is permitted and indicates that the cause is nonexistent or unknown.)