Class Guzzle\Common\Exception\ExceptionCollection

InheritanceGuzzle\Common\Exception\ExceptionCollection » Exception
ImplementsCountable, Guzzle\Common\Exception\GuzzleException, IteratorAggregate
SubclassesGuzzle\Http\Exception\MultiTransferException, Guzzle\Service\Exception\CommandTransferException

Collection of exceptions

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$exceptions array Array of Exceptions Guzzle\Common\Exception\ExceptionCollection

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__construct() Guzzle\Common\Exception\ExceptionCollection
add() Add exceptions to the collection Guzzle\Common\Exception\ExceptionCollection
count() Get the total number of request exceptions Guzzle\Common\Exception\ExceptionCollection
getFirst() Get the first exception in the collection Guzzle\Common\Exception\ExceptionCollection
getIterator() Allows array-like iteration over the request exceptions Guzzle\Common\Exception\ExceptionCollection
setExceptions() Set all of the exceptions Guzzle\Common\Exception\ExceptionCollection

Property Details

$exceptions protected property

Array of Exceptions

protected array $exceptions = []

Method Details

__construct() public method

public void __construct ( $message '', $code 0, Exception $previous null )
$message
$code
$previous
add() public method

Add exceptions to the collection

public \Guzzle\Common\Exception\ExceptionCollection; add ( $e )
$e Guzzle\Common\Exception\ExceptionCollection|Exception

Exception to add

count() public method

Get the total number of request exceptions

public int count ( )
getFirst() public method

Get the first exception in the collection

public Exception getFirst ( )
getIterator() public method

Allows array-like iteration over the request exceptions

public ArrayIterator getIterator ( )
setExceptions() public method

Set all of the exceptions

public self setExceptions ( array $exceptions )
$exceptions array

Array of exceptions