- java.lang.Object
-
- jakarta.resource.spi.work.WorkContextErrorCodes
-
public class WorkContextErrorCodes extends Object
This 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
-
-
Field Summary
Fields Modifier and Type Field Description static StringCONTEXT_SETUP_FAILEDIndicates a failure in recreating theWorkContextinstance.static StringCONTEXT_SETUP_UNSUPPORTEDIndicates that the container cannot support recreating theWorkContextinstance.static StringDUPLICATE_CONTEXTSIndicates that there are more than one instance of aWorkContexttype passed in by theWorkinstance.static 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()
-
-
-
Field Detail
-
UNSUPPORTED_CONTEXT_TYPE
public static final 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 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 String CONTEXT_SETUP_FAILED
Indicates a failure in recreating theWorkContextinstance. ForTransactionContextinstances, 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 String CONTEXT_SETUP_UNSUPPORTED
Indicates that the container cannot support recreating theWorkContextinstance. ForTransactionContextinstances, 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
-
-