Skip to content

Latest commit

 

History

History
69 lines (23 loc) · 687 Bytes

CancellationException.md

File metadata and controls

69 lines (23 loc) · 687 Bytes

CancellationException

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

Inherited 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