Documentation

Error extends Exception
in package

Table of Contents

$code  : string
$errors  : array<string|int, FieldError>
$message  : string
__construct()  : mixed
Constructor.
getHttpBody()  : string
Get the HTTP body.
getHttpStatus()  : int
Get the HTTP status code.
prettyPrint()  : void
Pretty print the error.

Properties

$message

public string $message

Methods

__construct()

Constructor.

public __construct([string $message = null ][, int $httpStatus = null ][, string $httpBody = null ]) : mixed
Parameters
$message : string = null
$httpStatus : int = null
$httpBody : string = null
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
Return values
void

Search results