Copied!

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

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

Instantiable
Methods
public __construct( $reason, ?string $description = NULL)
 
  • param mixed $reason Rejection reason.
  • param string|null $description Optional description.
public Exception::__toString() : string
public Exception::__wakeup()
public final Exception::getCode()
public final Exception::getFile() : string
public final Exception::getLine() : int
public final Exception::getMessage() : string
public final Exception::getPrevious() : ?Throwable
public getReason()
 

Returns the rejection reason.

  • return mixed
public final Exception::getTrace() : array
public final Exception::getTraceAsString() : string
Properties
protected Exception::$code = 0
protected string Exception::$file = ''
protected int Exception::$line = 0
protected Exception::$message = ''
Properties
private $reason = NULL
 
  • var mixed Rejection reason.
© 2024 Bruce Wells
Search Namespaces \ Classes
Configuration