Enum Class BuiltinExceptionCode
- All Implemented Interfaces:
Serializable
,Comparable<BuiltinExceptionCode>
,java.lang.constant.Constable
The set of built-in exception codes the built-in
ExceptionCodeProvider
uses to assign a code to a ProcessEngineException
.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThis code is assigned when a "column size too small" persistence exception is detected.This code is assigned when a "deadlock" persistence exception is detected.The code assigned to aProcessEngineException
when no other code is assigned.This code is assigned when a "foreign key constraint violation" persistence exception is detected.This code is assigned when anOptimisticLockingException
occurs. -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getCode()
static BuiltinExceptionCode
Returns the enum constant of this class with the specified name.static BuiltinExceptionCode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FALLBACK
The code assigned to aProcessEngineException
when no other code is assigned. -
OPTIMISTIC_LOCKING
This code is assigned when anOptimisticLockingException
occurs. -
DEADLOCK
This code is assigned when a "deadlock" persistence exception is detected. -
FOREIGN_KEY_CONSTRAINT_VIOLATION
This code is assigned when a "foreign key constraint violation" persistence exception is detected. -
COLUMN_SIZE_TOO_SMALL
This code is assigned when a "column size too small" persistence exception is detected.
-
-
Field Details
-
code
protected final int code
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getCode
public int getCode()
-