| java.lang.Object java.lang.Throwable java.lang.Exception javax.resource.ResourceException
All known Subclasses: javax.resource.spi.work.WorkException, javax.resource.spi.UnavailableException, javax.resource.spi.SecurityException, javax.resource.cci.ResourceWarning, javax.resource.spi.IllegalStateException, javax.resource.spi.EISSystemException, javax.resource.spi.ResourceAdapterInternalException, javax.resource.spi.SharingViolationException, javax.resource.spi.CommException, javax.resource.NotSupportedException, javax.resource.spi.LocalTransactionException, javax.resource.spi.ApplicationServerInternalException, javax.resource.spi.InvalidPropertyException, javax.resource.spi.ResourceAllocationException,
ResourceException | public class ResourceException extends Exception (Code) | | This is the root exception for the exception hierarchy defined for the
connector architecture.
A ResourceException contains three items, the first two of which are set from
the constructor. The first is a standard message string which is accessed via
the getMessage() method. The second is an errorCode which is accessed via the
getErrorCode() method. The third is a linked exception which provides more
information from a lower level in the resource manager. Linked exceptions are
accessed via get/setLinkedException.
|
serialVersionUID | final static long serialVersionUID(Code) | | since: 4.0.2 |
ResourceException | public ResourceException()(Code) | | Create an exception with a null reason.
|
ResourceException | public ResourceException(String reason)(Code) | | Create an exception with a reason.
Parameters: reason - the reason |
ResourceException | public ResourceException(String reason, String errorCode)(Code) | | Create an exception with a reason and an errorCode.
Parameters: reason - the reason Parameters: errorCode - the error code |
ResourceException | public ResourceException(String reason, Throwable throwable)(Code) | | Create an exception with a reason and an errorCode.
Parameters: reason - the reason Parameters: throwable - the linked error |
ResourceException | public ResourceException(Throwable throwable)(Code) | | Create an exception with a reason and an errorCode.
Parameters: throwable - the linked error |
getErrorCode | public String getErrorCode()(Code) | | Get the error code.
the error code |
getLinkedException | public Exception getLinkedException()(Code) | | Get any linked exception.
the linked exception |
getMessage | public String getMessage()(Code) | | Get the message composed of the reason and error code.
message composed of the reason and error code. |
setErrorCode | public void setErrorCode(String errorCode)(Code) | | Set the error code.
Parameters: errorCode - code the error code |
setLinkedException | public void setLinkedException(Exception linkedException)(Code) | | Set a linked exception.
Parameters: linkedException - the linked exception |
|
|