- java.lang.Object
-
- javax.resource.spi.work.WorkContextErrorCodes
-
public class WorkContextErrorCodes extends Object
This class models the possible error conditions that might occur during associating anWorkContext
with aWork
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
- Version:
- Java EE Connector Architecture 1.6
-
-
Field Summary
Fields Modifier and Type Field and Description static String
CONTEXT_SETUP_FAILED
Indicates a failure in recreating theWorkContext
instance.static String
CONTEXT_SETUP_UNSUPPORTED
Indicates that the container cannot support recreating theWorkContext
instance.static String
DUPLICATE_CONTEXTS
Indicates that there are more than one instance of aWorkContext
type passed in by theWork
instance.static String
UNSUPPORTED_CONTEXT_TYPE
Indicates that aWorkContext
type, that was not specified as optional, passed in by theWork
instance is not supported by the container.
-
Constructor Summary
Constructors Constructor and Description WorkContextErrorCodes()
-
-
-
Field Detail
-
UNSUPPORTED_CONTEXT_TYPE
public static final String UNSUPPORTED_CONTEXT_TYPE
Indicates that aWorkContext
type, that was not specified as optional, passed in by theWork
instance 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 aWorkContext
type passed in by theWork
instance.- Since:
- 1.6
- See Also:
- Constant Field Values
-
CONTEXT_SETUP_FAILED
public static final String CONTEXT_SETUP_FAILED
Indicates a failure in recreating theWorkContext
instance. ForTransactionContext
instances, theWorkManager
must use this failure code when it should have usedWorkException.TX_RECREATE_FAILED
as 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 theWorkContext
instance. ForTransactionContext
instances, theWorkManager
must use this failure code when it should have usedWorkException.TX_CONCURRENT_WORK_DISALLOWED
as the error code.- Since:
- 1.6
- See Also:
- Constant Field Values
-
-
Document created the 11/06/2005, last modified the 18/08/2025
Source of the printed document:https://www.gaudry.be/en/java-api-javaee-rf-javax/resource/spi/work/workcontexterrorcodes.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.
References
These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author of this site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.