Documentation

Google_Service_Exception extends Google_Exception
in package

Table of Contents

$errors  : mixed
Optional list of errors returned in a JSON body of an HTTP error response.
__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[, Exception|null $previous = null ][, mixed $errors = array() ]) : mixed
Parameters
$message : string
$code : int
$previous : Exception|null = null
$errors : mixed = array()
Return values
mixed

getErrors()

An example of the possible errors returned.

public getErrors() : mixed

{ "domain": "global", "reason": "authError", "message": "Invalid Credentials", "locationType": "header", "location": "Authorization", }

Return values
mixed

Search results