Documentation

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

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 = 0 ]) : mixed
Parameters
$e : Exception
$depth : mixed = 0

        
On this page

Search results