export const OCC_ABORTED = 'OCC_ABORTED';
export class OccAbortError extends Error {
    code = OCC_ABORTED;
    constructor(message = 'The operation was aborted.') {
        super(message);
        this.name = 'AbortError';
    }
}
export function isOccAbortError(error) {
    return (error instanceof OccAbortError ||
        (error instanceof Error && (error.name === 'AbortError' || error.code === OCC_ABORTED)));
}
//# sourceMappingURL=errors.js.map