Class RejectionException
A special exception that is thrown when waiting on a rejected promise.
The reason value is available via the getReason() method.
-
Exception
implements
Throwable
-
RuntimeException
-
GuzzleHttp\Promise\RejectionException
Methods summary
public
|
#
__construct( mixed $reason, string $description = null )
Parameters
- $reason
- Rejection reason.
- $description
- Optional description
Overrides
Exception::__construct()
|
public
mixed
|
#
getReason( )
Returns the rejection reason.
Returns the rejection reason.
Returns
mixed
|
Methods inherited from Exception
__toString(),
__wakeup(),
getCode(),
getFile(),
getLine(),
getMessage(),
getPrevious(),
getTrace(),
getTraceAsString()
|
Properties inherited from Exception
$code,
$file,
$line,
$message
|