|
Connector Architecture 1.6 API 1.0.0.Final | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.resource.spi.work.WorkContextErrorCodes
public class 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.
Field Summary | |
---|---|
static String |
CONTEXT_SETUP_FAILED
Indicates a failure in recreating the WorkContext
instance. |
static String |
CONTEXT_SETUP_UNSUPPORTED
Indicates that the container cannot support recreating the WorkContext instance. |
static String |
DUPLICATE_CONTEXTS
Indicates that there are more than one instance of a WorkContext
type passed in by the Work
instance. |
static 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 | |
---|---|
WorkContextErrorCodes()
Constructor |
Method Summary |
---|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String UNSUPPORTED_CONTEXT_TYPE
WorkContext
type, that was not
specified as optional, passed in by the Work
instance is
not supported by the container.
public static final String DUPLICATE_CONTEXTS
WorkContext
type passed in by the Work
instance.
public static final String CONTEXT_SETUP_FAILED
WorkContext
instance. For TransactionWorkContext
instances, the
WorkManager
must use this failure code when it should have
used WorkException.TX_RECREATE_FAILED
as the error code.
public static final String CONTEXT_SETUP_UNSUPPORTED
WorkContext
instance. For
TransactionWorkContext
instances, the
WorkManager
must use this failure code when it should have
used WorkException.TX_CONCURRENT_WORK_DISALLOWED
as the error
code.
Constructor Detail |
---|
public WorkContextErrorCodes()
|
Connector Architecture 1.6 API 1.0.0.Final | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |