Enum Class OErrorCode

java.lang.Object
java.lang.Enum<OErrorCode>
com.orientechnologies.common.exception.OErrorCode
All Implemented Interfaces:
Serializable, Comparable<OErrorCode>, Constable

public enum OErrorCode extends Enum<OErrorCode>
Enumeration with the error managed by OrientDB. This class has been introduced in v.2.2 and little by little will contain all the OrientDB managed errors.
Author:
Luigi Dell'Aquila (l.dellaquila-(at)-orientdb.com)
  • Enum Constant Details

    • QUERY_PARSE_ERROR

      public static final OErrorCode QUERY_PARSE_ERROR
    • BACKUP_IN_PROGRESS

      public static final OErrorCode BACKUP_IN_PROGRESS
    • MVCC_ERROR

      public static final OErrorCode MVCC_ERROR
    • VALIDATION_ERROR

      public static final OErrorCode VALIDATION_ERROR
    • GENERIC_ERROR

      public static final OErrorCode GENERIC_ERROR
  • Field Details

    • category

      protected final OErrorCategory category
    • code

      protected final int code
    • description

      protected final String description
    • exceptionClass

      protected final Class<? extends OException> exceptionClass
  • Method Details

    • values

      public static OErrorCode[] 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 OErrorCode 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()
    • throwException

      public void throwException()
    • throwException

      public void throwException(String message)
    • throwException

      public void throwException(Throwable parent)
    • throwException

      public void throwException(String message, Throwable parent)
    • newException

      public OException newException(String message, Throwable parent)
    • getErrorCode

      public static OErrorCode getErrorCode(int code)