public class WorkContextErrorCodes extends Object
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.
| Modifier and Type | Field and Description | 
|---|---|
| static String | CONTEXT_SETUP_FAILEDIndicates a failure in recreating the  WorkContextinstance. | 
| static String | CONTEXT_SETUP_UNSUPPORTEDIndicates that the container cannot support recreating the
  WorkContextinstance. | 
| static String | DUPLICATE_CONTEXTSIndicates that there are more than one instance of a  WorkContexttype passed in by theWorkinstance. | 
| static String | UNSUPPORTED_CONTEXT_TYPEIndicates that a  WorkContexttype, that was not specified as
 optional, passed in by theWorkinstance is not supported by
 the container. | 
| Constructor and Description | 
|---|
| WorkContextErrorCodes() | 
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 TransactionContext 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
 TransactionContext instances, the
 WorkManager must use this failure code when it should have
 used WorkException.TX_CONCURRENT_WORK_DISALLOWED as the error
 code.Copyright © 1996-2015, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.