SDK for PHP 3.x

CancellationException extends RejectionException
in package

Exception that is set as the reason for a promise that has been cancelled.

Table of Contents

Methods

__construct()  : mixed
getReason()  : mixed
Returns the rejection reason.

Methods

__construct()

public __construct(mixed $reason[, string|null $description = null ]) : mixed
Parameters
$reason : mixed

Rejection reason.

$description : string|null = null

Optional description.

getReason()

Returns the rejection reason.

public getReason() : mixed
On this page