RejectionException
extends RuntimeException
in package
A special exception that is thrown when waiting on a rejected promise.
The reason value is available via the getReason() method.
Table of Contents
- $reason : mixed
- __construct() : mixed
- getReason() : mixed
- Returns the rejection reason.
Properties
$reason
private
mixed
$reason
Methods
__construct()
public
__construct(mixed $reason[, string $description = null ]) : mixed
Parameters
- $reason : mixed
-
Rejection reason.
- $description : string = null
-
Optional description
Return values
mixed —getReason()
Returns the rejection reason.
public
getReason() : mixed