javax.resource.spi.work
public class: WorkException [javadoc |
source]
java.lang.Object
java.lang.Throwable
java.lang.Exception
javax.resource.ResourceException
javax.resource.spi.work.WorkException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
WorkCompletedException, WorkRejectedException
A common base class for all
Work processing related exceptions.
- version:
1.0 -
- author:
Ram - Jeyaraman
| Field Summary |
|---|
| public static final String | INTERNAL | Indicates an internal error condition. |
| public static final String | UNDEFINED | Undefined error code. |
| public static final String | START_TIMED_OUT | Indicates start timeout expiration. |
| public static final String | TX_CONCURRENT_WORK_DISALLOWED | Indicates that concurrent work within a transaction is
disallowed. That is, there is already another Work
instance associated with the specified transaction context. |
| public static final String | TX_RECREATE_FAILED | Indicates a failure in recreating the specified transaction context. |
| Constructor: |
public WorkException() {
super();
}
Constructs a new instance with null as its detail message. |
public WorkException(String message) {
super(message);
}
Constructs a new instance with the specified detail message. Parameters:
message - the detail message.
|
public WorkException(Throwable cause) {
super(cause);
}
Constructs a new throwable with the specified cause. Parameters:
cause - a chained exception of type
Throwable.
|
public WorkException(String message,
Throwable cause) {
super(message, cause);
}
Constructs a new throwable with the specified detail message and cause. Parameters:
message - the detail message.
cause - a chained exception of type
Throwable.
|
public WorkException(String message,
String errorCode) {
super(message, errorCode);
}
Constructs a new throwable with the specified detail message and
an error code. Parameters:
message - a description of the exception.
errorCode - a string specifying the vendor specific error code.
|
| Methods from java.lang.Throwable: |
|---|
|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |