ExceptionCollection
extends Exception
in package
implements
GuzzleException, IteratorAggregate, Countable
Collection of exceptions
Table of Contents
Interfaces
- GuzzleException
- Guzzle exception
- IteratorAggregate
- Countable
Properties
- $exceptions : array<string|int, mixed>
- $shortMessage : string
Methods
- __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 = 0 ][, Exception $previous = null ]) : mixed
Parameters
- $message : mixed = ''
- $code : mixed = 0
- $previous : Exception = null
add()
Add exceptions to the collection
public
add(ExceptionCollection|Exception $e) : mixed
Parameters
- $e : ExceptionCollection|Exception
-
Exception to add
Tags
count()
Get the total number of request exceptions
public
count() : int
Return values
intgetFirst()
Get the first exception in the collection
public
getFirst() : Exception
Return values
ExceptiongetIterator()
Allows array-like iteration over the request exceptions
public
getIterator() : ArrayIterator
Return values
ArrayIteratorsetExceptions()
Set all of the exceptions
public
setExceptions(array<string|int, mixed> $exceptions) : self
Parameters
- $exceptions : array<string|int, mixed>
-
Array of exceptions
Return values
selfgetExceptionMessage()
private
getExceptionMessage(Exception $e[, mixed $depth = 0 ]) : mixed
Parameters
- $e : Exception
- $depth : mixed = 0