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 )
-
public
setExceptions ( array $exceptions )
Set all of the exceptions
-
public
add ( ExceptionCollection|\Exception $e )
Add exceptions to the collection
-
public
count ( )
Get the total number of request exceptions
-
public
getIterator ( )
Allows array-like iteration over the request exceptions
-
public
getFirst ( )
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 |