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); }} Copy
export class CancelledError extends Error { constructor(message: string = "Operation cancelled") { super(message); this.name = "CancelledError"; Object.setPrototypeOf(this, CancelledError.prototype); }}
Custom error class for batch operation cancellations. Used to distinguish intentional cancellations from other errors.
Source