|
||||||||||
| PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
javax.resource.ResourceException (src)
javax.resource.spi.work.WorkException
Thrown when there is an error handling work.
| Field Summary | |
static java.lang.String |
INTERNAL
An internal error |
static java.lang.String |
START_TIMED_OUT
Expiration before work was started |
static java.lang.String |
TX_CONCURRENT_WORK_DISALLOWED
Not allowed to do concurrent work on a transaction |
static java.lang.String |
TX_RECREATE_FAILED
Could not recreate the transaction context |
static java.lang.String |
UNDEFINED
An undefined error |
| Constructor Summary | |
WorkException()
Create an exception. |
|
WorkException(java.lang.String reason)
Create an exception with a reason. |
|
WorkException(java.lang.String reason,
java.lang.String errorCode)
Create an exception with a reason and an errorCode. |
|
WorkException(java.lang.String reason,
java.lang.Throwable throwable)
Create an exception with a reason and an error. |
|
WorkException(java.lang.Throwable throwable)
Create an exception with an error. |
|
| Methods inherited from class javax.resource.ResourceException (src) |
getErrorCode, getLinkedException, getMessage, setErrorCode, setLinkedException |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final java.lang.String INTERNAL
public static final java.lang.String UNDEFINED
public static final java.lang.String START_TIMED_OUT
public static final java.lang.String TX_CONCURRENT_WORK_DISALLOWED
public static final java.lang.String TX_RECREATE_FAILED
| Constructor Detail |
public WorkException()
public WorkException(java.lang.String reason)
reason - the reason
public WorkException(java.lang.String reason,
java.lang.String errorCode)
reason - the reasonerrorCode - the error code
public WorkException(java.lang.String reason,
java.lang.Throwable throwable)
reason - the reasonthrowable - the errorpublic WorkException(java.lang.Throwable throwable)
throwable - the error
|
||||||||||
| PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||