phpDocumentor

KlarnaHubException extends Exception
in package

Class KlarnaHubException

Tags
subpackage

GambioHub

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

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>
Return values
array<string|int, mixed>

Search results