ExceptionCollection
extends Exception
in package
implements
GuzzleException, IteratorAggregate, Countable
Collection of exceptions
Interfaces, Classes and Traits
- GuzzleException
- Guzzle exception
- IteratorAggregate
- Countable
Table of Contents
- $exceptions : array<string|int, mixed>
- $shortMessage : string
- __construct() : mixed
- add() : mixed
- Add exceptions to the collection
- count() : int
- Get the total number of request exceptions
- getFirst() : Exception
- Get the first exception in the collection
- getIterator() : ArrayIterator
- Allows array-like iteration over the request exceptions
- setExceptions() : self
- Set all of the exceptions
- getExceptionMessage() : mixed
Properties
$exceptions
protected
array<string|int, mixed>
$exceptions
= array()
Array of Exceptions
$shortMessage
private
string
$shortMessage
Succinct exception message not including sub-exceptions
Methods
__construct()
public
__construct([mixed $message = '' ], mixed $code[, Exception $previous = null ]) : mixed
Parameters
- $message : mixed = ''
- $code : mixed
- $previous : Exception = null
Return values
mixed —add()
Add exceptions to the collection
public
add(ExceptionCollection|Exception $e) : mixed
Parameters
- $e : ExceptionCollection|Exception
-
Exception to add
Return values
mixed —count()
Get the total number of request exceptions
public
count() : int
Return values
int —getFirst()
Get the first exception in the collection
public
getFirst() : Exception
Return values
Exception —getIterator()
Allows array-like iteration over the request exceptions
public
getIterator() : ArrayIterator
Return values
ArrayIterator —setExceptions()
Set all of the exceptions
public
setExceptions(array<string|int, mixed> $exceptions) : self
Parameters
- $exceptions : array<string|int, mixed>
-
Array of exceptions
Return values
self —getExceptionMessage()
private
getExceptionMessage(Exception $e, mixed $depth) : mixed
Parameters
- $e : Exception
- $depth : mixed