Enum Class ErrorCode

java.lang.Object
java.lang.Enum<ErrorCode>
dev.getelements.elements.sdk.model.exception.ErrorCode
All Implemented Interfaces:
Serializable, Comparable<ErrorCode>, Constable

public enum ErrorCode extends Enum<ErrorCode>
An enumeration of error codes which may provide greater detail as to why a problem occurred. Created by patricktwohig on 4/10/15.
  • Enum Constant Details

    • NOT_FOUND

      public static final ErrorCode NOT_FOUND
      An object or resource was not found.
    • FORBIDDEN

      public static final ErrorCode FORBIDDEN
      Access to a given resource is forbidden.
    • UNAUTHORIZED

      public static final ErrorCode UNAUTHORIZED
      Access to a given resource is unauthorized.
    • INVALID_PARAMETER

      public static final ErrorCode INVALID_PARAMETER
      Indicates an invalid parameter was passed to the API
    • DUPLICATE

      public static final ErrorCode DUPLICATE
      There already exists a resource of this type.
    • CONFLICT

      public static final ErrorCode CONFLICT
      The request conflicts with existing data for some reason.
    • INVALID_DATA

      public static final ErrorCode INVALID_DATA
      Invalid data or input was provided.
    • OVERLOAD

      public static final ErrorCode OVERLOAD
      A particular resource is overloaded at the moment.
    • NOT_IMPLEMENTED

      public static final ErrorCode NOT_IMPLEMENTED
      The particular feature is not implemented or is currently unavailable.
    • EXTERNAL_RESOURCE_FAILED

      public static final ErrorCode EXTERNAL_RESOURCE_FAILED
      An external resource failed to behave ideally.
    • UNHEALTHY

      public static final ErrorCode UNHEALTHY
      Healths checks failed.
    • UNKNOWN

      public static final ErrorCode UNKNOWN
      Some other exception.
  • 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