\GuzzleHttp\PromiseRejectionException

A special exception that is thrown when waiting on a rejected promise.

The reason value is available via the getReason() method.

Summary

Methods
Properties
Constants
__construct()
getReason()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$reason
N/A

Properties

$reason

$reason : mixed

Type

mixed — Rejection reason.

Methods

__construct()

__construct(mixed  $reason, string  $description = null) : mixed

Parameters

mixed $reason

Rejection reason.

string $description

Optional description

Returns

mixed —

getReason()

getReason() : mixed

Returns the rejection reason.

Returns

mixed —