ApiErrorException::factory( string $message, null|int $httpStatus = null, null|string $httpBody = null, null|array $jsonBody = null, null|array|StripeUtilCaseInsensitiveArray $httpHeaders = null, null|string $stripeCode = null )

Creates a new API error exception.


Description Description


Parameters Parameters

$message

(Required) the exception message

$httpStatus

(Optional) the HTTP status code

Default value: null

$httpBody

(Optional) the HTTP body as a string

Default value: null

$jsonBody

(Optional) the JSON deserialized body

Default value: null

$httpHeaders

(Optional) the HTTP headers array

Default value: null

$stripeCode

(Optional) the Stripe error code

Default value: null


Top ↑

Return Return

(static)


Top ↑

Source Source

File: includes/gateways/stripe/vendor/stripe/stripe-php/lib/Exception/ApiErrorException.php


			

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.