You are here

public function RejectionException::getReason in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/guzzlehttp/promises/src/RejectionException.php \GuzzleHttp\Promise\RejectionException::getReason()

Returns the rejection reason.

Return value

mixed

File

vendor/guzzlehttp/promises/src/RejectionException.php, line 43

Class

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

Namespace

GuzzleHttp\Promise

Code

public function getReason() {
  return $this->reason;
}