KlarnaHubException
extends Exception
in package
Class KlarnaHubException
Tags
Table of Contents
- $errorResponse : array<string|int, mixed>
- __construct() : mixed
- Construct the exception.
- getErrorResponse() : array<string|int, mixed>
- Returns the Klarna API error response.
Properties
$errorResponse
protected
array<string|int, mixed>
$errorResponse
Methods
__construct()
Construct the exception.
public
__construct(array<string|int, mixed> $errorResponse, int $code[, Exception $previous = null ]) : mixed
Parameters
- $errorResponse : array<string|int, mixed>
-
Klarna API error response (associative array).
- $code : int
-
Exception code.
- $previous : Exception = null
-
Previous throwable used for the exception chaining.
Return values
mixed —getErrorResponse()
Returns the Klarna API error response.
public
getErrorResponse() : array<string|int, mixed>