Enum Class GlobalErrorCode

java.lang.Object
java.lang.Enum<GlobalErrorCode>
com.v1rex.liftnexus.common.exception.GlobalErrorCode
All Implemented Interfaces:
ErrorCode, Serializable, Comparable<GlobalErrorCode>, Constable

public enum GlobalErrorCode extends Enum<GlobalErrorCode> implements ErrorCode
  • Enum Constant Details

    • VALIDATION_FAILED

      public static final GlobalErrorCode VALIDATION_FAILED
    • CONSTRAINT_VIOLATION

      public static final GlobalErrorCode CONSTRAINT_VIOLATION
    • TYPE_MISMATCH

      public static final GlobalErrorCode TYPE_MISMATCH
    • MISSING_PARAMETER

      public static final GlobalErrorCode MISSING_PARAMETER
    • PAYLOAD_TOO_LARGE

      public static final GlobalErrorCode PAYLOAD_TOO_LARGE
    • METHOD_NOT_ALLOWED

      public static final GlobalErrorCode METHOD_NOT_ALLOWED
    • UNSUPPORTED_MEDIA_TYPE

      public static final GlobalErrorCode UNSUPPORTED_MEDIA_TYPE
    • MEDIA_TYPE_NOT_ACCEPTABLE

      public static final GlobalErrorCode MEDIA_TYPE_NOT_ACCEPTABLE
    • MALFORMED_REQUEST_BODY

      public static final GlobalErrorCode MALFORMED_REQUEST_BODY
    • SERIALIZATION_ERROR

      public static final GlobalErrorCode SERIALIZATION_ERROR
    • DATABASE_CONFLICT

      public static final GlobalErrorCode DATABASE_CONFLICT
    • INTERNAL_SERVER_ERROR

      public static final GlobalErrorCode INTERNAL_SERVER_ERROR
  • Method Details

    • values

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