Open Journal Systems  3.3.0
Guzzle\Common\Exception\ExceptionCollection Class Reference
Inheritance diagram for Guzzle\Common\Exception\ExceptionCollection:
Guzzle\Common\Exception\GuzzleException Guzzle\Http\Exception\MultiTransferException Guzzle\Service\Exception\CommandTransferException

Public Member Functions

 __construct ($message='', $code=0, \Exception $previous=null)
 
 add ($e)
 
 count ()
 
 getFirst ()
 
 getIterator ()
 
 setExceptions (array $exceptions)
 

Protected Attributes

 $exceptions = array()
 

Detailed Description

Collection of exceptions

Definition at line 8 of file ExceptionCollection.php.

Constructor & Destructor Documentation

◆ __construct()

Guzzle\Common\Exception\ExceptionCollection::__construct (   $message = '',
  $code = 0,
\Exception  $previous = null 
)

Definition at line 22 of file ExceptionCollection.php.

Member Function Documentation

◆ add()

Guzzle\Common\Exception\ExceptionCollection::add (   $e)

◆ count()

Guzzle\Common\Exception\ExceptionCollection::count ( )

Get the total number of request exceptions

Returns
int

Definition at line 69 of file ExceptionCollection.php.

Referenced by Guzzle\Service\Exception\CommandTransferException\fromMultiTransferException().

◆ getFirst()

Guzzle\Common\Exception\ExceptionCollection::getFirst ( )

Get the first exception in the collection

Returns
\Exception

Definition at line 89 of file ExceptionCollection.php.

Referenced by Guzzle\Http\Client\send().

◆ getIterator()

Guzzle\Common\Exception\ExceptionCollection::getIterator ( )

Allows array-like iteration over the request exceptions

Returns
\ArrayIterator

Definition at line 79 of file ExceptionCollection.php.

Referenced by Guzzle\Tests\Http\Curl\CurlMultiTest\testSendsThroughCurlAndAggregatesRequestExceptions().

◆ setExceptions()

Guzzle\Common\Exception\ExceptionCollection::setExceptions ( array  $exceptions)

Set all of the exceptions

Parameters
array$exceptionsArray of exceptions
Returns
self

Definition at line 35 of file ExceptionCollection.php.

References Guzzle\Common\Exception\ExceptionCollection\$exceptions, and Guzzle\Common\Exception\ExceptionCollection\add().

Field Documentation

◆ $exceptions

array Guzzle\Common\Exception\ExceptionCollection::$exceptions = array()
protected

Array of Exceptions

Definition at line 14 of file ExceptionCollection.php.

Referenced by Guzzle\Common\Exception\ExceptionCollection\setExceptions().


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