|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception javax.resource.ResourceException
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.
Constructor Summary | |
ResourceException()
Create an exception with a null reason. |
|
ResourceException(String reason)
Create an exception with a reason. |
|
ResourceException(String reason,
String errorCode)
Create an exception with a reason and an errorCode. |
|
ResourceException(String reason,
Throwable throwable)
Create an exception with a reason and an errorCode. |
|
ResourceException(Throwable throwable)
Create an exception with a reason and an errorCode. |
Method Summary | |
String |
getErrorCode()
Get the error code. |
Exception |
getLinkedException()
Get any linked exception. |
void |
setErrorCode(String errorCode)
Set the error code. |
void |
setLinkedException(Exception linkedException)
Deprecated. use initCause |
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 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ResourceException()
public ResourceException(String reason)
reason
- the reasonpublic ResourceException(String reason, String errorCode)
reason
- the reasonerrorCode
- the error codepublic ResourceException(String reason, Throwable throwable)
reason
- the reasonthrowable
- the linked errorpublic ResourceException(Throwable throwable)
throwable
- the linked errorMethod Detail |
public String getErrorCode()
public Exception getLinkedException()
public void setErrorCode(String errorCode)
public void setLinkedException(Exception linkedException)
linkedException
- the linked exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |