Exception that is set as the reason for a promise that has been cancelled.
- Full name:
\GuzzleHttp\Promise\CancellationException
- Parent class:
\GuzzleHttp\Promise\RejectionException
public __construct(mixed $reason, string $description = null): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$reason |
mixed | Rejection reason. |
$description |
string | Optional description |
Returns the rejection reason.
public getReason(): mixed