Custom error class for batch operation cancellations. Used to distinguish intentional cancellations from other errors.

export class CancelledError extends Error {
constructor(message: string = "Operation cancelled") {
super(message);
this.name = "CancelledError";
Object.setPrototypeOf(this, CancelledError.prototype);
}
}

Hierarchy

  • Error
    • CancelledError

Constructors

Constructors