Package jakarta.resource.spi.work
Class WorkContextErrorCodes
java.lang.Object
jakarta.resource.spi.work.WorkContextErrorCodes
This class models the possible error conditions that might occur during
associating an
WorkContext with a Work instance.
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 WorkContext types.
- Since:
- 1.6
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringIndicates a failure in recreating theWorkContextinstance.static final StringIndicates that the container cannot support recreating theWorkContextinstance.static final StringIndicates that there are more than one instance of aWorkContexttype passed in by theWorkinstance.static final StringIndicates that aWorkContexttype, that was not specified as optional, passed in by theWorkinstance is not supported by the container. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
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:
-
DUPLICATE_CONTEXTS
Indicates that there are more than one instance of aWorkContexttype passed in by theWorkinstance.- Since:
- 1.6
- See Also:
-
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:
-
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:
-
-
Constructor Details
-
WorkContextErrorCodes
public WorkContextErrorCodes()
-