Table of Contents
Properties
-
$error
: string|null
-
$errorCode
: string|null
-
$requestId
: string|null
-
$statusCode
: int|null
Methods
-
__construct()
: mixed
-
fromResponse()
: static
$error
read-only
public
string|null
$error
= null
$errorCode
read-only
public
string|null
$errorCode
= null
$requestId
read-only
public
string|null
$requestId
= null
$statusCode
read-only
public
int|null
$statusCode
= null
__construct()
public
__construct([string $message = '' ][, int|null $statusCode = null ][, string|null $requestId = null ][, Throwable|null $previous = null ][, string|null $errorCode = null ][, string|null $error = null ]) : mixed
Parameters
-
$message
: string
= ''
-
-
$statusCode
: int|null
= null
-
-
$requestId
: string|null
= null
-
-
$previous
: Throwable|null
= null
-
-
$errorCode
: string|null
= null
-
-
$error
: string|null
= null
-
fromResponse()
public
static fromResponse(int $statusCode, array<string|int, mixed> $body[, string|null $requestId = null ]) : static
Parameters
-
$statusCode
: int
-
-
$body
: array<string|int, mixed>
-
-
$requestId
: string|null
= null
-