Open Journal Systems  3.3.0
GuzzleHttp\Promise\RejectionException Class Reference
Inheritance diagram for GuzzleHttp\Promise\RejectionException:
GuzzleHttp\Promise\AggregateException GuzzleHttp\Promise\CancellationException

Public Member Functions

 __construct ($reason, $description=null)
 
 getReason ()
 

Detailed Description

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

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

Definition at line 9 of file RejectionException.php.

Constructor & Destructor Documentation

◆ __construct()

GuzzleHttp\Promise\RejectionException::__construct (   $reason,
  $description = null 
)
Parameters
mixed$reasonRejection reason.
string$descriptionOptional description

Definition at line 21 of file RejectionException.php.

References GuzzleHttp\json_encode().

Member Function Documentation

◆ getReason()

GuzzleHttp\Promise\RejectionException::getReason ( )

Returns the rejection reason.

Returns
mixed

Definition at line 46 of file RejectionException.php.

Referenced by GuzzleHttp\Promise\inspect().


The documentation for this class was generated from the following file: