ApiException
extends EasyPostException
in package
Table of Contents
- $code : string
- $code : mixed
- $errors : array<string|int, FieldError>
- $errors : mixed
- $message : mixed
- $httpBody : mixed
- $httpStatus : mixed
- $jsonBody : mixed
- __construct() : mixed
- ApiException constructor.
- getHttpBody() : string
- Get the HTTP body.
- getHttpStatus() : int
- Get the HTTP status code.
- prettyPrint() : void
- Pretty print the error.
Properties
$code
public
string
$code
$code
public
mixed
$code
$errors
public
array<string|int, FieldError>
$errors
$errors
public
mixed
$errors
$message
protected
mixed
$message
$httpBody
private
mixed
$httpBody
$httpStatus
private
mixed
$httpStatus
$jsonBody
private
mixed
$jsonBody
Methods
__construct()
ApiException constructor.
public
__construct([string $message = null ][, int $httpStatus = null ][, string $httpBody = '' ]) : mixed
Parameters
- $message : string = null
- $httpStatus : int = null
- $httpBody : string = ''
Return values
mixed —getHttpBody()
Get the HTTP body.
public
getHttpBody() : string
Return values
string —getHttpStatus()
Get the HTTP status code.
public
getHttpStatus() : int
Return values
int —prettyPrint()
Pretty print the error.
public
prettyPrint() : void