\GuzzleHttp\PromiseCancellationException

Exception that is set as the reason for a promise that has been cancelled.

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) 

Parameters

mixed $reason

Rejection reason.

string $description

Optional description

getReason()

getReason() : mixed

Returns the rejection reason.

Returns

mixed