Module dev.eidentification.bankid
Enum Class ErrorCode
- All Implemented Interfaces:
Serializable
,Comparable<ErrorCode>
,Constable
Enumeration for representing various error codes that might be encountered from the BankID API.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionstatusAlreadyInProgress 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.Internal technical error in the BankID system.hint for a request with invalid parameters.The service is temporarily unavailable.Only http method POST is allowed.An erroneous URL inputStream was used.It took too long time to transmit the request.status of a complete order.status of a failed order.status of a pending order.RP does not have access to the service.New error codes may be introduced without prior notice.Adding a "charset" parameter after 'application/json' is not allowed since the MIME type "application/json" has neither optional nor required parameters. -
Method Summary
-
Enum Constant Details
-
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
status of a pending order. hintCode describes the status of the order. -
STATUS_FAILED
status of a failed order. hintCode describes the error. -
STATUS_COMPLETE
status of a complete order. completionData holds user information. -
INVALID_PARAMETERS
hint for a request with invalid parameters. -
UNAUTHORIZED
RP does not have access to the service. -
NOT_FOUND
An erroneous URL inputStream was used. -
METHOD_NOT_ALLOWED
Only http method POST is allowed. -
REQUEST_TIMEOUT
It took too long time to transmit the request. -
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
Internal technical error in the BankID system. -
MAINTENANCE
The service is temporarily unavailable. -
UNKNOWN
New error codes may be introduced without prior notice.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
of
-
getCode
-