Class ExceptionCollection
Collection of exceptions
- Exception
-
Guzzle\Common\Exception\ExceptionCollection
implements
Guzzle\Common\Exception\GuzzleException,
IteratorAggregate,
Countable
Direct known subclasses
Indirect known subclasses
Methods summary
-
public__construct ( mixed $message = '', mixed $code = 0, Exception $previous = null ) -
publicsetExceptions ( array $exceptions )Set all of the exceptions
-
publicadd ( ExceptionCollection|\Exception $e )Add exceptions to the collection
-
publiccount ( )Get the total number of request exceptions
-
publicgetIterator ( )Allows array-like iteration over the request exceptions
-
publicgetFirst ( )Get the first exception in the collection
Methods detail
Overrides
Set all of the exceptions
Parameters
- $exceptions
array
$exceptions Array of exceptions
Returns
Add exceptions to the collection
Parameters
- $e
Guzzle\Common\Exception\ExceptionCollection|Exception
$e Exception to add
Returns
ExceptionCollection;Allows array-like iteration over the request exceptions
Returns
Implementation of
Methods inherited from Exception
__toString(),
__wakeup(),
getCode(),
getFile(),
getLine(),
getMessage(),
getPrevious(),
getTrace(),
getTraceAsString()
Magic methods summary
Properties summary
protected
array
|
$exceptions |
#
Array of Exceptions |