class Handler (View source)

Class Handler

Handles Hubtel Exceptions throws \OVAC\HubtelPayment\Exception\HubtelException

Properties

protected array $excByStatusCode List of mapped exceptions and their corresponding status codes.

Methods

__construct(ClientException $exception)

Constructor.

handleException($message, $statusCode, $errorType, $errorCode, $missingParameter, $rawOutput)

Guesses the FQN of the exception to be thrown.

getMissingParameters($errors = [])

No description

Details

__construct(ClientException $exception)

Constructor.

Parameters

ClientException $exception

Exceptions

HubtelException

protected HubtelException handleException($message, $statusCode, $errorType, $errorCode, $missingParameter, $rawOutput)

Guesses the FQN of the exception to be thrown.

Parameters

$message
$statusCode
$errorType
$errorCode
$missingParameter
$rawOutput

Return Value

HubtelException

protected getMissingParameters($errors = [])

Parameters

$errors