Enum Class ErrorCode

java.lang.Object
java.lang.Enum<ErrorCode>
hu.rts.mike.example.dev.crm.error.ErrorCode
All Implemented Interfaces:
Serializable, Comparable<ErrorCode>, Constable

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

    • SQL_ERROR

      public static final ErrorCode SQL_ERROR
    • NO_SUCH_FIELD

      public static final ErrorCode NO_SUCH_FIELD
    • NO_SUCH_OPERATOR

      public static final ErrorCode NO_SUCH_OPERATOR
    • INVALID_NEW_PASSWORD

      public static final ErrorCode INVALID_NEW_PASSWORD
    • WEAK_NEW_PASSWORD

      public static final ErrorCode WEAK_NEW_PASSWORD
    • LAST_USER_WHO_CAN_CREATE_USERS

      public static final ErrorCode LAST_USER_WHO_CAN_CREATE_USERS
    • NOT_FOUND

      public static final ErrorCode NOT_FOUND
    • ROLE_IS_IN_USE

      public static final ErrorCode ROLE_IS_IN_USE
    • ROLE_ALREADY_EXISTS

      public static final ErrorCode ROLE_ALREADY_EXISTS
    • INVALID_FILTER_FORMAT

      public static final ErrorCode INVALID_FILTER_FORMAT
    • INVALID_FILTER_PROPERTY

      public static final ErrorCode INVALID_FILTER_PROPERTY
    • INVALID_FILTER

      public static final ErrorCode INVALID_FILTER
    • ALREADY_SOFT_DELETED

      public static final ErrorCode ALREADY_SOFT_DELETED
    • ALREADY_RESTORED

      public static final ErrorCode ALREADY_RESTORED
  • Field Details

    • code

      private final Integer code
    • defaultMessage

      private final String defaultMessage
    • status

      private org.springframework.http.HttpStatus status
  • Constructor Details

    • ErrorCode

      private ErrorCode(Integer code, String defaultMessage, org.springframework.http.HttpStatus status)
  • Method Details

    • values

      public static ErrorCode[] 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 ErrorCode 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 Integer getCode()
    • getDefaultMessage

      public String getDefaultMessage()
    • getStatus

      public org.springframework.http.HttpStatus getStatus()