Exception
extends Exception
in package
Table of Contents
Properties
- $errors : mixed
- Optional list of errors returned in a JSON body of an HTTP error response.
Methods
- __construct() : mixed
- Override default constructor to add the ability to set $errors and a retry map.
- getErrors() : mixed
- An example of the possible errors returned.
Properties
$errors
Optional list of errors returned in a JSON body of an HTTP error response.
protected
mixed
$errors
= array()
Methods
__construct()
Override default constructor to add the ability to set $errors and a retry map.
public
__construct(string $message[, int $code = 0 ][, Exception|null $previous = null ][, mixed $errors = array() ]) : mixed
Parameters
- $message : string
- $code : int = 0
- $previous : Exception|null = null
- $errors : mixed = array()
getErrors()
An example of the possible errors returned.
public
getErrors() : mixed
{ "domain": "global", "reason": "authError", "message": "Invalid Credentials", "locationType": "header", "location": "Authorization", }