public class WorkException extends ResourceException
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
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.
|
getErrorCode, getLinkedException, getMessage, setErrorCode, setLinkedException
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
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
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 errorCopyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.