\Guzzle\Common\ExceptionExceptionCollection

Collection of exceptions

Summary

Methods
Properties
Constants
__construct()
setExceptions()
add()
count()
getIterator()
getFirst()
No public properties found
No constants found
No protected methods found
$exceptions
N/A
getExceptionMessage()
$shortMessage
N/A

Properties

$exceptions

$exceptions : array

Type

array — Array of Exceptions

$shortMessage

$shortMessage : string

Type

string — Succinct exception message not including sub-exceptions

Methods

__construct()

__construct(  $message = '',   $code, \Exception  $previous = null) 

Parameters

$message
$code
\Exception $previous

setExceptions()

setExceptions(array  $exceptions) : self

Set all of the exceptions

Parameters

array $exceptions

Array of exceptions

Returns

self

add()

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

Add exceptions to the collection

Parameters

\Guzzle\Common\Exception\ExceptionCollection|\Exception $e

Exception to add

Returns

\Guzzle\Common\Exception\ExceptionCollection;

count()

count() : integer

Get the total number of request exceptions

Returns

integer

getIterator()

getIterator() : \ArrayIterator

Allows array-like iteration over the request exceptions

Returns

\ArrayIterator

getFirst()

getFirst() : \Exception

Get the first exception in the collection

Returns

\Exception

getExceptionMessage()

getExceptionMessage(\Exception  $e,   $depth) 

Parameters

\Exception $e
$depth