PHP Class Cartalyst\Stripe\Exception\Handler

Exibir arquivo Open project: cartalyst/stripe

Protected Properties

Property Type Description
$exceptionsByErrorType array List of mapped exceptions and their corresponding error types.
$exceptionsByStatusCode array List of mapped exceptions and their corresponding status codes.

Public Methods

Method Description
__construct ( GuzzleHttp\Exception\ClientException $exception ) : void Constructor.

Protected Methods

Method Description
handleException ( string $message, integer $statusCode, string $errorType, string $errorCode, string $missingParameter ) : void Guesses the FQN of the exception to be thrown.

Method Details

__construct() public method

Constructor.
public __construct ( GuzzleHttp\Exception\ClientException $exception ) : void
$exception GuzzleHttp\Exception\ClientException
return void

handleException() protected method

Guesses the FQN of the exception to be thrown.
protected handleException ( string $message, integer $statusCode, string $errorType, string $errorCode, string $missingParameter ) : void
$message string
$statusCode integer
$errorType string
$errorCode string
$missingParameter string
return void

Property Details

$exceptionsByErrorType protected_oe property

List of mapped exceptions and their corresponding error types.
protected array $exceptionsByErrorType
return array

$exceptionsByStatusCode protected_oe property

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