Save This Page
Home » glassfish-v2ur2-b04-src » javax.resource » [javadoc | source]
javax.resource
public class: ResourceException [javadoc | source]
java.lang.Object
   java.lang.Throwable
      java.lang.Exception
         javax.resource.ResourceException

All Implemented Interfaces:
    Serializable

Direct Known Subclasses:
    InvalidPropertyException, WorkCompletedException, ApplicationServerInternalException, WorkException, ResourceAdapterInternalException, ResourceWarning, UnavailableException, LocalTransactionException, WorkRejectedException, NotSupportedException, CommException, ResourceAllocationException, IllegalStateException, SharingViolationException, SecurityException, EISSystemException

This is the root interface of the exception hierarchy defined for the Connector architecture. The ResourceException provides the following information:
Constructor:
 public ResourceException() 
 public ResourceException(String message) 
    Constructs a new instance with the specified detail message.
    Parameters:
    message - the detail message.
 public ResourceException(Throwable cause) 
    Constructs a new throwable with the specified cause.
    Parameters:
    cause - a chained exception of type Throwable.
 public ResourceException(String message,
    Throwable cause) 
    Constructs a new throwable with the specified detail message and cause.
    Parameters:
    message - the detail message.
    cause - a chained exception of type Throwable.
 public ResourceException(String message,
    String errorCode) 
    Create a new throwable with the specified message and error code.
    Parameters:
    message - a description of the exception.
    errorCode - a string specifying the vendor specific error code.
Method from javax.resource.ResourceException Summary:
getErrorCode,   getLinkedException,   getMessage,   setErrorCode,   setLinkedException
Methods from java.lang.Throwable:
fillInStackTrace,   getCause,   getLocalizedMessage,   getMessage,   getStackTrace,   initCause,   printStackTrace,   printStackTrace,   printStackTrace,   setStackTrace,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.resource.ResourceException Detail:
 public String getErrorCode() 
    Get the error code.
 public Exception getLinkedException() 
Deprecated! J2SE - release 1.4 supports a chained exception facility that allows any throwable to know about another throwable, if any, that caused it to get thrown. Refer to getCause and initCause methods of the java.lang.Throwable class..

    Get the exception linked to this ResourceException
 public String getMessage() 
    Returns a detailed message string describing this exception.
 public  void setErrorCode(String errorCode) 
    Set the error code.
 public  void setLinkedException(Exception ex) 
Deprecated! J2SE - release 1.4 supports a chained exception facility that allows any throwable to know about another throwable, if any, that caused it to get thrown. Refer to getCause and initCause methods of the java.lang.Throwable class.

    Add a linked Exception to this ResourceException.