Package javax.resource.spi.work
Class WorkContextErrorCodes
- java.lang.Object
-
- javax.resource.spi.work.WorkContextErrorCodes
-
public class WorkContextErrorCodes extends java.lang.ObjectThis class models the possible error conditions that might occur during associating anWorkContextwith aWorkinstance.This class is not designed as an Enumerated type (Enum), as the error codes listed below could be expanded to accommodate custom error conditions for custom
WorkContexttypes.- Since:
- 1.6
- Version:
- Java EE Connector Architecture 1.6
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCONTEXT_SETUP_FAILEDIndicates a failure in recreating theWorkContextinstance.static java.lang.StringCONTEXT_SETUP_UNSUPPORTEDIndicates that the container cannot support recreating theWorkContextinstance.static java.lang.StringDUPLICATE_CONTEXTSIndicates that there are more than one instance of aWorkContexttype passed in by theWorkinstance.static java.lang.StringUNSUPPORTED_CONTEXT_TYPEIndicates that aWorkContexttype, that was not specified as optional, passed in by theWorkinstance is not supported by the container.
-
Constructor Summary
Constructors Constructor Description WorkContextErrorCodes()Constructor
-
-
-
Field Detail
-
UNSUPPORTED_CONTEXT_TYPE
public static final java.lang.String UNSUPPORTED_CONTEXT_TYPE
Indicates that aWorkContexttype, that was not specified as optional, passed in by theWorkinstance is not supported by the container.- Since:
- 1.6
- See Also:
- Constant Field Values
-
DUPLICATE_CONTEXTS
public static final java.lang.String DUPLICATE_CONTEXTS
Indicates that there are more than one instance of aWorkContexttype passed in by theWorkinstance.- Since:
- 1.6
- See Also:
- Constant Field Values
-
CONTEXT_SETUP_FAILED
public static final java.lang.String CONTEXT_SETUP_FAILED
Indicates a failure in recreating theWorkContextinstance. ForTransactionWorkContextinstances, theWorkManagermust use this failure code when it should have usedWorkException.TX_RECREATE_FAILEDas the error code.- Since:
- 1.6
- See Also:
- Constant Field Values
-
CONTEXT_SETUP_UNSUPPORTED
public static final java.lang.String CONTEXT_SETUP_UNSUPPORTED
Indicates that the container cannot support recreating theWorkContextinstance. ForTransactionWorkContextinstances, theWorkManagermust use this failure code when it should have usedWorkException.TX_CONCURRENT_WORK_DISALLOWEDas the error code.- Since:
- 1.6
- See Also:
- Constant Field Values
-
-