Enum Class ApiErrorCode

java.lang.Object
java.lang.Enum<ApiErrorCode>
se.idkollen.client.models.ApiErrorCode
All Implemented Interfaces:
Serializable, Comparable<ApiErrorCode>, Constable

public enum ApiErrorCode extends Enum<ApiErrorCode>
Standardised error code present in all FAILED status responses.
  • Enum Constant Details

    • AUTH_FAILED

      public static final ApiErrorCode AUTH_FAILED
    • CANCELLED

      public static final ApiErrorCode CANCELLED
    • INVALID_ID

      public static final ApiErrorCode INVALID_ID
    • CONFLICT

      public static final ApiErrorCode CONFLICT
    • INTERNAL_ERROR

      public static final ApiErrorCode INTERNAL_ERROR
    • SESSION_TIMEOUT

      public static final ApiErrorCode SESSION_TIMEOUT
    • UNSUPPORTED_CLIENT

      public static final ApiErrorCode UNSUPPORTED_CLIENT
  • Method Details

    • values

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