java.lang.Object | +--java.lang.Throwable | +--java.lang.Exception | +--javax.resource.ResourceException
This is the root interface of the exception hierarchy defined for the Connector architecture. The ResourceException provides the following information:
ResourceException(java.lang.String reason) Create a ResourceException with reason. | |
ResourceException(java.lang.String reason, java.lang.String errorCode) Create a ResourceException. |
getErrorCode() Get the vendor specific error code | |
getLinkedException() Get the exception linked to this ResourceException | |
setLinkedException(java.lang.Exception ex) Add a linked Exception to this ResourceException. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
publicResourceException(java.lang.String reason, java.lang.String errorCode)
reason
- a description of the exceptionerrorCode
- a string specifying the vendor specific error codepublicResourceException(java.lang.String reason)
reason
- a description of the exceptionpublic java.lang.StringgetErrorCode()
public java.lang.ExceptiongetLinkedException()
public voidsetLinkedException(java.lang.Exception ex)
ex
- linked Exception