Enum Class ClientError

java.lang.Object
java.lang.Enum<ClientError>
church.i18n.processing.status.ClientError
All Implemented Interfaces:
Status, Serializable, Comparable<ClientError>, Constable

public enum ClientError extends Enum<ClientError> implements Status
List of client error statuses matching HTTP status codes that reflect validation errors and are not bound into a web service layer.
  • Enum Constant Details

    • BAD_REQUEST

      public static final ClientError BAD_REQUEST
    • UNAUTHORIZED

      public static final ClientError UNAUTHORIZED
    • PAYMENT_REQUIRED

      public static final ClientError PAYMENT_REQUIRED
    • FORBIDDEN

      public static final ClientError FORBIDDEN
    • NOT_FOUND

      public static final ClientError NOT_FOUND
    • CONFLICT

      public static final ClientError CONFLICT
    • GONE

      public static final ClientError GONE
    • UNSUPPORTED_MEDIA_TYPE

      public static final ClientError UNSUPPORTED_MEDIA_TYPE
  • Method Details

    • values

      public static ClientError[] 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 ClientError 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
    • getStatusId

      public int getStatusId()
      Description copied from interface: Status
      Value of system-wide processing status.
      Specified by:
      getStatusId in interface Status
      Returns:
      Numeric representation of status returned with the exception.