BankIDRequestException
class BankIDRequestException extends BankIDException
Exception thrown when a BankID request fails or returns an API error.
Methods
__construct(string $message, string $errorCode, string|null $details = NULL, string|null $orderRef = NULL, string|null $userMessage = NULL, int $code = 0, Throwable|null $previous = NULL)
Constructs a new BankIDRequestException.
string
getErrorCode()
Gets the BankID error code.
string|null
getDetails()
Gets the details from the API.
string|null
getOrderRef()
Gets the order reference if available.
string|null
getUserMessage()
Gets the user-facing message.
Details
at line 30
__construct(string $message, string $errorCode, string|null $details = NULL, string|null $orderRef = NULL, string|null $userMessage = NULL, int $code = 0, Throwable|null $previous = NULL)
Constructs a new BankIDRequestException.
at line 48
string
getErrorCode()
Gets the BankID error code.
at line 58
string|null
getDetails()
Gets the details from the API.
at line 68
string|null
getOrderRef()
Gets the order reference if available.
at line 78
string|null
getUserMessage()
Gets the user-facing message.