Enum Class BuiltinExceptionCode

java.lang.Object
java.lang.Enum<BuiltinExceptionCode>
org.camunda.bpm.engine.impl.errorcode.BuiltinExceptionCode
All Implemented Interfaces:
Serializable, Comparable<BuiltinExceptionCode>, java.lang.constant.Constable

public enum BuiltinExceptionCode extends Enum<BuiltinExceptionCode>
The set of built-in exception codes the built-in ExceptionCodeProvider uses to assign a code to a ProcessEngineException.
  • Enum Constant Details

    • FALLBACK

      public static final BuiltinExceptionCode FALLBACK
      The code assigned to a ProcessEngineException when no other code is assigned.
    • OPTIMISTIC_LOCKING

      public static final BuiltinExceptionCode OPTIMISTIC_LOCKING
      This code is assigned when an OptimisticLockingException occurs.
    • 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.
  • Field Details

    • code

      protected final int code
  • Method Details

    • values

      public static BuiltinExceptionCode[] 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

      public static BuiltinExceptionCode valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getCode

      public int getCode()