Top Description Fields Constructors Methods
javax.resource.spi.work

public Class WorkContextErrorCodes

extends Object
Class Inheritance

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
Version
Java EE Connector Architecture 1.6

Field Summary

Modifier and TypeField and Description
public static final String
CONTEXT_SETUP_FAILED

Indicates a failure in recreating the WorkContext instance.

public static final String
CONTEXT_SETUP_UNSUPPORTED

Indicates that the container cannot support recreating the WorkContext instance.

public static final String
DUPLICATE_CONTEXTS

Indicates that there are more than one instance of a WorkContext type passed in by the Work instance.

public static final String
UNSUPPORTED_CONTEXT_TYPE

Indicates that a WorkContext type, that was not specified as optional, passed in by the Work instance is not supported by the container.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

CONTEXT_SETUP_FAILEDback to summary
public static final String CONTEXT_SETUP_FAILED

Indicates a failure in recreating the WorkContext instance. For TransactionContext instances, the WorkManager must use this failure code when it should have used WorkException#TX_RECREATE_FAILED as the error code.

Since
1.6
CONTEXT_SETUP_UNSUPPORTEDback to summary
public static final String CONTEXT_SETUP_UNSUPPORTED

Indicates that the container cannot support recreating the WorkContext instance. For TransactionContext instances, the WorkManager must use this failure code when it should have used WorkException#TX_CONCURRENT_WORK_DISALLOWED as the error code.

Since
1.6
DUPLICATE_CONTEXTSback to summary
public static final String DUPLICATE_CONTEXTS

Indicates that there are more than one instance of a WorkContext type passed in by the Work instance.

Since
1.6
UNSUPPORTED_CONTEXT_TYPEback to summary
public static final String UNSUPPORTED_CONTEXT_TYPE

Indicates that a WorkContext type, that was not specified as optional, passed in by the Work instance is not supported by the container.

Since
1.6

Constructor Detail

WorkContextErrorCodesback to summary
public WorkContextErrorCodes()