Class BankIDException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
se.swedenconnect.bankid.rpapi.types.BankIDException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
BankIdServerException, BankIdSessionExpiredException, BankIdTraceableException, BankIdUserException, NoSuchRelyingPartyException, UserCancelException

public class BankIDException extends RuntimeException
Exception class for error concerning the communication between the RP and the backend service.
Author:
Martin Lindström
See Also:
  • Constructor Details

    • BankIDException

      public BankIDException(ErrorResponse errorResponse)
      Constructor creating an instance based on an error response.
      Parameters:
      errorResponse - the response
    • BankIDException

      public BankIDException(ErrorResponse errorResponse, String message)
      Constructor creating an instance based on an error response and an error message.
      Parameters:
      errorResponse - the error response
      message - the error message
    • BankIDException

      public BankIDException(ErrorResponse errorResponse, Throwable cause)
      Constructor creating an instance based on an error response and the cause of the error.
      Parameters:
      errorResponse - the error response
      cause - the cause of the error
    • BankIDException

      public BankIDException(ErrorResponse errorResponse, String message, Throwable cause)
      Constructor creating an instance based on an error response, the error message and the cause of the errors.
      Parameters:
      errorResponse - the error response
      message - the error message
      cause - the cause of the error
    • BankIDException

      public BankIDException(ErrorCode errorCode)
      Constructor assigning the error code.
      Parameters:
      errorCode - the error code
    • BankIDException

      public BankIDException(ErrorCode errorCode, String message)
      Constructor assigning the error code and the error message.
      Parameters:
      errorCode - the error code
      message - the error message
    • BankIDException

      public BankIDException(ErrorCode errorCode, Throwable cause)
      Constructor assigning the error code and the cause of the error.
      Parameters:
      errorCode - the error code
      cause - the cause of the error
    • BankIDException

      public BankIDException(ErrorCode errorCode, String message, Throwable cause)
      Constructor assigning the error code, the error message and the cause of the errors.
      Parameters:
      errorCode - the error code
      message - the error message
      cause - the cause of the error
    • BankIDException

      public BankIDException(String message)
  • Method Details

    • getErrorCode

      public ErrorCode getErrorCode()
      Returns the error code.
      Returns:
      the error code
    • getDetails

      public String getDetails()
      Returns the error details.
      Returns:
      the error details
    • setDetails

      public void setDetails(String details)
      Assigns the error details.
      Parameters:
      details - the error details
    • toString

      public String toString()
      Overrides:
      toString in class Throwable