java.lang.Object
java.lang.Enum<ErrorCode>
dev.eidentification.bankid.client.model.enums.ErrorCode
All Implemented Interfaces:
Serializable, Comparable<ErrorCode>, Constable

public enum ErrorCode extends Enum<ErrorCode>
Enumeration for representing various error codes that might be encountered from the BankID API.
  • Enum Constant Details

    • ALREADY_IN_PROGRESS

      public static final ErrorCode ALREADY_IN_PROGRESS
      statusAlreadyInProgress is the hint for a order where an auth or sign request with personal number was sent, but an order for the user is already in progress. The order is aborted. No order is created.

      Details are found in details.

    • STATUS_PENDING

      public static final ErrorCode STATUS_PENDING
      status of a pending order. hintCode describes the status of the order.
    • STATUS_FAILED

      public static final ErrorCode STATUS_FAILED
      status of a failed order. hintCode describes the error.
    • STATUS_COMPLETE

      public static final ErrorCode STATUS_COMPLETE
      status of a complete order. completionData holds user information.
    • INVALID_PARAMETERS

      public static final ErrorCode INVALID_PARAMETERS
      hint for a request with invalid parameters.
    • UNAUTHORIZED

      public static final ErrorCode UNAUTHORIZED
      RP does not have access to the service.
    • NOT_FOUND

      public static final ErrorCode NOT_FOUND
      An erroneous URL inputStream was used.
    • METHOD_NOT_ALLOWED

      public static final ErrorCode METHOD_NOT_ALLOWED
      Only http method POST is allowed.
    • REQUEST_TIMEOUT

      public static final ErrorCode REQUEST_TIMEOUT
      It took too long time to transmit the request.
    • UNSUPPORTED_MEDIA_TYPE

      public static final ErrorCode UNSUPPORTED_MEDIA_TYPE
      Adding a "charset" parameter after 'application/json' is not allowed since the MIME type "application/json" has neither optional nor required parameters.
    • INTERNAL_SERVER_ERROR

      public static final ErrorCode INTERNAL_SERVER_ERROR
      Internal technical error in the BankID system.
    • MAINTENANCE

      public static final ErrorCode MAINTENANCE
      The service is temporarily unavailable.
    • UNKNOWN

      public static final ErrorCode UNKNOWN
      New error codes may be introduced without prior notice.
  • 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
    • of

      public static ErrorCode of(String code)
    • getCode

      public String getCode()