A special exception that is thrown when waiting on a rejected promise.
The reason value is available via the getReason() method.
- Full name:
\GuzzleHttp\Promise\RejectionException
- Parent class:
RuntimeException
private mixed $reason
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