|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
javax.resource.ResourceException
javax.resource.spi.work.WorkException
public class WorkException
Thrown when there is an error handling work.
| Field Summary | |
|---|---|
static String |
INTERNAL
An internal error |
static String |
START_TIMED_OUT
Expiration before work was started |
static String |
TX_CONCURRENT_WORK_DISALLOWED
Not allowed to do concurrent work on a transaction |
static String |
TX_RECREATE_FAILED
Could not recreate the transaction context |
static String |
UNDEFINED
An undefined error |
| Constructor Summary | |
|---|---|
WorkException()
Create an exception. |
|
WorkException(String reason)
Create an exception with a reason. |
|
WorkException(String reason,
String errorCode)
Create an exception with a reason and an errorCode. |
|
WorkException(String reason,
Throwable throwable)
Create an exception with a reason and an error. |
|
WorkException(Throwable throwable)
Create an exception with an error. |
|
| Method Summary |
|---|
| Methods inherited from class javax.resource.ResourceException |
|---|
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 String INTERNAL
public static final String UNDEFINED
public static final String START_TIMED_OUT
public static final String TX_CONCURRENT_WORK_DISALLOWED
public static final String TX_RECREATE_FAILED
| Constructor Detail |
|---|
public WorkException()
public WorkException(String reason)
reason - the reason
public WorkException(String reason,
String errorCode)
reason - the reasonerrorCode - the error code
public WorkException(String reason,
Throwable throwable)
reason - the reasonthrowable - the errorpublic WorkException(Throwable throwable)
throwable - the error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||