| 
|||||||||||
| 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
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.  | 
|
| Methods inherited from class javax.resource.ResourceException | 
getErrorCode, getLinkedException, setErrorCode, setLinkedException | 
| 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 | 
| 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 reasonpublic WorkException(String reason, String errorCode)
reason - the reasonerrorCode - the error codepublic 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 | ||||||||||