Enum BuiltinExceptionCode
- java.lang.Object
-
- java.lang.Enum<BuiltinExceptionCode>
-
- org.camunda.bpm.engine.impl.errorcode.BuiltinExceptionCode
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<BuiltinExceptionCode>
public enum BuiltinExceptionCode extends java.lang.Enum<BuiltinExceptionCode>
The set of built-in exception codes the built-inExceptionCodeProvideruses to assign a code to aProcessEngineException.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COLUMN_SIZE_TOO_SMALLThis code is assigned when a "column size too small" persistence exception is detected.DEADLOCKThis code is assigned when a "deadlock" persistence exception is detected.FALLBACKThe code assigned to aProcessEngineExceptionwhen no other code is assigned.FOREIGN_KEY_CONSTRAINT_VIOLATIONThis code is assigned when a "foreign key constraint violation" persistence exception is detected.OPTIMISTIC_LOCKINGThis code is assigned when anOptimisticLockingExceptionorCrdbTransactionRetryExceptionoccurs.
-
Field Summary
Fields Modifier and Type Field Description protected intcode
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCode()static BuiltinExceptionCodevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static BuiltinExceptionCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FALLBACK
public static final BuiltinExceptionCode FALLBACK
The code assigned to aProcessEngineExceptionwhen no other code is assigned.
-
OPTIMISTIC_LOCKING
public static final BuiltinExceptionCode OPTIMISTIC_LOCKING
This code is assigned when anOptimisticLockingExceptionorCrdbTransactionRetryExceptionoccurs.
-
DEADLOCK
public static final BuiltinExceptionCode DEADLOCK
This code is assigned when a "deadlock" persistence exception is detected.
-
FOREIGN_KEY_CONSTRAINT_VIOLATION
public static final BuiltinExceptionCode FOREIGN_KEY_CONSTRAINT_VIOLATION
This code is assigned when a "foreign key constraint violation" persistence exception is detected.
-
COLUMN_SIZE_TOO_SMALL
public static final BuiltinExceptionCode COLUMN_SIZE_TOO_SMALL
This code is assigned when a "column size too small" persistence exception is detected.
-
-
Method Detail
-
values
public static BuiltinExceptionCode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (BuiltinExceptionCode c : BuiltinExceptionCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BuiltinExceptionCode valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getCode
public int getCode()
-
-