Represents cancellation errors.

interface Cancel {
    cancelled: true;
    message: undefined | string;
    name: "AbortError";
    toString(): string;
}

Properties

Methods

Properties

cancelled: true

cancelled is always true for instances of Cancel.

message: undefined | string

User defined message.

name: "AbortError"

Error name is AbortError for compatibility with JavaScript's AbortSignal handling.

Methods

  • Returns "Cancel: <message>"

    Returns string