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¶
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