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
Exception class for error concerning the communication between the RP and the backend service.
- Author:
- Martin Lindström
- See Also:
-
Constructor Summary
ConstructorDescriptionBankIDException
(String message) BankIDException
(ErrorCode errorCode) Constructor assigning the error code.BankIDException
(ErrorCode errorCode, String message) Constructor assigning the error code and the error message.BankIDException
(ErrorCode errorCode, String message, Throwable cause) Constructor assigning the error code, the error message and the cause of the errors.BankIDException
(ErrorCode errorCode, Throwable cause) Constructor assigning the error code and the cause of the error.BankIDException
(ErrorResponse errorResponse) Constructor creating an instance based on an error response.BankIDException
(ErrorResponse errorResponse, String message) Constructor creating an instance based on an error response and an error message.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.BankIDException
(ErrorResponse errorResponse, Throwable cause) Constructor creating an instance based on an error response and the cause of the error. -
Method Summary
Modifier and TypeMethodDescriptionReturns the error details.Returns the error code.void
setDetails
(String details) Assigns the error details.toString()
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
BankIDException
Constructor creating an instance based on an error response.- Parameters:
errorResponse
- the response
-
BankIDException
Constructor creating an instance based on an error response and an error message.- Parameters:
errorResponse
- the error responsemessage
- the error message
-
BankIDException
Constructor creating an instance based on an error response and the cause of the error.- Parameters:
errorResponse
- the error responsecause
- the cause of the error
-
BankIDException
Constructor creating an instance based on an error response, the error message and the cause of the errors.- Parameters:
errorResponse
- the error responsemessage
- the error messagecause
- the cause of the error
-
BankIDException
Constructor assigning the error code.- Parameters:
errorCode
- the error code
-
BankIDException
Constructor assigning the error code and the error message.- Parameters:
errorCode
- the error codemessage
- the error message
-
BankIDException
Constructor assigning the error code and the cause of the error.- Parameters:
errorCode
- the error codecause
- the cause of the error
-
BankIDException
Constructor assigning the error code, the error message and the cause of the errors.- Parameters:
errorCode
- the error codemessage
- the error messagecause
- the cause of the error
-
BankIDException
-
-
Method Details