Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
Google_IO_Exception Class Reference
Inheritance diagram for Google_IO_Exception:
Google_Exception Google_Task_Retryable Exception

Public Member Functions

 __construct ( $message, $code=0, Exception $previous=null, array $retryMap=null)
 Creates a new IO exception with an optional retry map.
 
 allowedRetries ()
 Gets the number of times the associated task can be retried.
 

Constructor & Destructor Documentation

◆ __construct()

Google_IO_Exception::__construct ( $message,
$code = 0,
Exception $previous = null,
array $retryMap = null )

Creates a new IO exception with an optional retry map.

Parameters
string$message
int$code
Exception | null$previous
array | null$retryMapMap of errors with retry counts.

Member Function Documentation

◆ allowedRetries()

Google_IO_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
integer

Implements Google_Task_Retryable.


The documentation for this class was generated from the following file: