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

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

Instantiable
ExtendsRuntimeException
Exception
ImplementsThrowable
Methods
public __construct( $reason, $description = NULL)
 
    public Exception::__toString()
    public Exception::__wakeup()
    public final Exception::getCode()
    public final Exception::getFile()
    public final Exception::getLine()
    public final Exception::getMessage()
    public final Exception::getPrevious()
    public getReason()
     

    Returns the rejection reason.

    • return mixed
    public final Exception::getTrace()
    public final Exception::getTraceAsString()
    Properties
    protected Exception::$code
    protected Exception::$file
    protected Exception::$line
    protected Exception::$message
    Properties
    private $reason
     
    • var mixed Rejection reason.
    Methods
    private final Exception::__clone()
    © 2020 Bruce Wells
    Search Namespaces \ Classes
    ConfigurationNumbers (0-9.) only