Skip to content

Latest commit

 

History

History
84 lines (30 loc) · 775 Bytes

RejectionException.md

File metadata and controls

84 lines (30 loc) · 775 Bytes

RejectionException

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

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

  • Full name: \GuzzleHttp\Promise\RejectionException
  • Parent class: RuntimeException

Properties

reason

private mixed $reason

Methods

__construct

public __construct(mixed $reason, string $description = null): mixed

Parameters:

Parameter Type Description
$reason mixed Rejection reason.
$description string Optional description

getReason

Returns the rejection reason.

public getReason(): mixed