|
| __construct ( $message, $code=0, Exception $previous=null, $errors=array(), array $retryMap=null) |
| Override default constructor to add the ability to set $errors and a retry map.
|
|
| allowedRetries () |
| Gets the number of times the associated task can be retried.
|
|
| getErrors () |
| An example of the possible errors returned.
|
|
◆ __construct()
Google_Service_Exception::__construct |
( |
| $message, |
|
|
| $code = 0, |
|
|
Exception | $previous = null, |
|
|
| $errors = array(), |
|
|
array | $retryMap = null ) |
Override default constructor to add the ability to set $errors and a retry map.
- Parameters
-
string | $message | |
int | $code | |
Exception | null | $previous | |
| [{string,string}] | errors List of errors returned in an HTTP response. Defaults to []. |
array | null | $retryMap | Map of errors with retry counts. |
◆ allowedRetries()
Google_Service_Exception::allowedRetries |
( |
| ) |
|
Gets the number of times the associated task can be retried.
NOTE: -1 is returned if the task can be retried indefinitely
- Return values
-
Implements Google_Task_Retryable.
◆ getErrors()
Google_Service_Exception::getErrors |
( |
| ) |
|
An example of the possible errors returned.
{ "domain": "global", "reason": "authError", "message": "Invalid Credentials", "locationType": "header", "location": "Authorization", }
- Return values
-
[{string,string}] | List of errors return in an HTTP response or []. |
The documentation for this class was generated from the following file:
- lib/google/src/Google/Service/Exception.php