RejectionException

class Firstred\PostNL\Exception\Promise\RejectionException
A special exception that is thrown when waiting on a rejected promise.
The reason value is available via the getReason() method.
Parent:

RuntimeException

Summary

Methods

Properties

private static property Firstred\PostNL\Exception\Promise\RejectionException::$reason
Type:

mixed Rejection reason.

Methods

public Firstred\PostNL\Exception\Promise\RejectionException::__construct($reason, $description=null)
Parameters:
  • $reason (mixed) rejection reason

  • $description (string) Optional description

public Firstred\PostNL\Exception\Promise\RejectionException::getReason()
Returns the rejection reason.
Returns:

mixed