@dxos/errors 0.12.0-next-73daef452f1464b62efdbca75fb0067c1066f264 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/index.mjs +81 -6
- package/dist/lib/index.mjs.map +1 -1
- package/dist/types/src/base.d.ts +17 -0
- package/dist/types/src/base.d.ts.map +1 -1
- package/dist/types/src/cancellation.d.ts +17 -0
- package/dist/types/src/cancellation.d.ts.map +1 -0
- package/dist/types/src/context.d.ts +9 -0
- package/dist/types/src/context.d.ts.map +1 -0
- package/dist/types/src/errors.d.ts +29 -29
- package/dist/types/src/errors.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +4 -2
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/base.ts +34 -3
- package/src/cancellation.ts +57 -0
- package/src/context.ts +24 -0
- package/src/errors.test.ts +48 -2
- package/src/errors.ts +1 -1
- package/src/index.ts +4 -2
package/dist/lib/index.mjs
CHANGED
|
@@ -12,15 +12,24 @@ var BaseError = class BaseError extends Error {
|
|
|
12
12
|
static extend(name, message) {
|
|
13
13
|
return class ExtendedError extends BaseError {
|
|
14
14
|
static name = name;
|
|
15
|
+
/**
|
|
16
|
+
* Name equality, not an `instanceof`, so an error rebuilt from the wire still matches.
|
|
17
|
+
* A subclass that renames itself therefore does NOT match its parent, so define
|
|
18
|
+
* siblings rather than a renaming subclass.
|
|
19
|
+
*/
|
|
15
20
|
static is(error) {
|
|
16
21
|
return typeof error === "object" && error !== null && "name" in error && error.name === name;
|
|
17
22
|
}
|
|
23
|
+
/**
|
|
24
|
+
* Returns a `catch`/`mapError` callback that wraps a thrown value in this class.
|
|
25
|
+
* @param options.ifTypeDiffers - Pass an error of this class through untouched.
|
|
26
|
+
*/
|
|
18
27
|
static wrap(options) {
|
|
19
28
|
const wrapFn = (error) => {
|
|
20
|
-
if (options?.ifTypeDiffers === true && this.is(error)) return error;
|
|
29
|
+
if (options?.ifTypeDiffers === true && (this.is(error) || error instanceof this)) return error;
|
|
21
30
|
const newError = new this({
|
|
22
|
-
|
|
23
|
-
|
|
31
|
+
context: options?.context,
|
|
32
|
+
message: options?.message ?? messageOf(error) ?? message,
|
|
24
33
|
cause: error
|
|
25
34
|
});
|
|
26
35
|
Error.captureStackTrace(newError, wrapFn);
|
|
@@ -30,8 +39,9 @@ var BaseError = class BaseError extends Error {
|
|
|
30
39
|
}
|
|
31
40
|
constructor(options) {
|
|
32
41
|
super(name, {
|
|
33
|
-
|
|
34
|
-
|
|
42
|
+
cause: options?.cause,
|
|
43
|
+
context: options?.context,
|
|
44
|
+
message: options?.message ?? message
|
|
35
45
|
});
|
|
36
46
|
}
|
|
37
47
|
};
|
|
@@ -54,6 +64,71 @@ var BaseError = class BaseError extends Error {
|
|
|
54
64
|
return this.name;
|
|
55
65
|
}
|
|
56
66
|
};
|
|
67
|
+
/**
|
|
68
|
+
* The message carried by a thrown value.
|
|
69
|
+
*
|
|
70
|
+
* Duck-types `message` rather than testing `instanceof Error`, so a cross-realm error or a
|
|
71
|
+
* rejected error-shaped object reads the same as a local one, matching how `encodeError`
|
|
72
|
+
* in `@dxos/protocols` decides what to put on the wire.
|
|
73
|
+
*/
|
|
74
|
+
var messageOf = (error) => {
|
|
75
|
+
if (typeof error === "string") return error;
|
|
76
|
+
if (typeof error === "object" && error !== null && "message" in error) {
|
|
77
|
+
const { message } = error;
|
|
78
|
+
return typeof message === "string" ? message : void 0;
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
//#endregion
|
|
82
|
+
//#region src/cancellation.ts
|
|
83
|
+
/**
|
|
84
|
+
* The only two `DOMException` names that mean "the user (or an abort signal) stopped this",
|
|
85
|
+
* rather than "the operation failed". WebAuthn raises `NotAllowedError` both when the prompt is
|
|
86
|
+
* dismissed and when it times out; an aborted `AbortSignal` raises `AbortError`.
|
|
87
|
+
*/
|
|
88
|
+
var CANCELLATION_NAMES = /* @__PURE__ */ new Set(["NotAllowedError", "AbortError"]);
|
|
89
|
+
/** Bound so a malformed chain (or a self-referential `cause`) cannot spin. */
|
|
90
|
+
var MAX_CAUSE_DEPTH = 8;
|
|
91
|
+
var isMarked = (value) => "cancellation" in value && value.cancellation === true;
|
|
92
|
+
/**
|
|
93
|
+
* Whether a thrown value is a cancellation rather than a genuine failure.
|
|
94
|
+
*
|
|
95
|
+
* Walks the `cause` chain because a domain error wraps the original `DOMException` — the
|
|
96
|
+
* interactive ceremony that raised it sits several frames below the handler that reports it.
|
|
97
|
+
* Only the two names above match, so every other `DOMException` stays an error.
|
|
98
|
+
*/
|
|
99
|
+
var isCancellation = (error) => {
|
|
100
|
+
let current = error;
|
|
101
|
+
for (let depth = 0; depth < MAX_CAUSE_DEPTH && current !== null && current !== void 0; ++depth) {
|
|
102
|
+
if (typeof current === "object" && isMarked(current)) return true;
|
|
103
|
+
if (typeof DOMException !== "undefined" && current instanceof DOMException && CANCELLATION_NAMES.has(current.name)) return true;
|
|
104
|
+
if (typeof current !== "object" || !("cause" in current)) return false;
|
|
105
|
+
const { cause } = current;
|
|
106
|
+
if (cause === current) return false;
|
|
107
|
+
current = cause;
|
|
108
|
+
}
|
|
109
|
+
return false;
|
|
110
|
+
};
|
|
111
|
+
//#endregion
|
|
112
|
+
//#region src/context.ts
|
|
113
|
+
/**
|
|
114
|
+
* Reads an error's structured `context`, which {@link BaseError} declares and a plain `Error` may
|
|
115
|
+
* still carry: a failure raised outside DXOS travels the same log and telemetry paths.
|
|
116
|
+
*/
|
|
117
|
+
var readContext = (error) => "context" in error && typeof error.context === "object" && error.context ? error.context : {};
|
|
118
|
+
/**
|
|
119
|
+
* Merges structured detail into an error's `context`, returning the same error.
|
|
120
|
+
*
|
|
121
|
+
* Both of the repo's error codecs carry this field, so a failure annotated here reaches the
|
|
122
|
+
* downloadable log (`computeContext` in `@dxos/log`) and the reset dialog's copy payload without
|
|
123
|
+
* either of them knowing which subsystem produced it.
|
|
124
|
+
*/
|
|
125
|
+
var withContext = (error, context) => {
|
|
126
|
+
if (error instanceof Error) Object.assign(error, { context: {
|
|
127
|
+
...readContext(error),
|
|
128
|
+
...context
|
|
129
|
+
} });
|
|
130
|
+
return error;
|
|
131
|
+
};
|
|
57
132
|
//#endregion
|
|
58
133
|
//#region src/errors.ts
|
|
59
134
|
var ApiError = class extends BaseError.extend("ApiError", "API error") {};
|
|
@@ -64,6 +139,6 @@ var AbortedError = class extends BaseError.extend("AbortedError", "Aborted") {};
|
|
|
64
139
|
var NotImplementedError = class extends BaseError.extend("NotImplementedError", "Not implemented") {};
|
|
65
140
|
var RuntimeServiceError = class extends BaseError.extend("RuntimeServiceError", "Runtime service error") {};
|
|
66
141
|
//#endregion
|
|
67
|
-
export { AbortedError, ApiError, BaseError, InternalError, NotImplementedError, RuntimeServiceError, SystemError, TimeoutError };
|
|
142
|
+
export { AbortedError, ApiError, BaseError, InternalError, NotImplementedError, RuntimeServiceError, SystemError, TimeoutError, isCancellation, messageOf, withContext };
|
|
68
143
|
|
|
69
144
|
//# sourceMappingURL=index.mjs.map
|
package/dist/lib/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":[],"sources":["../../src/base.ts","../../src/errors.ts"],"sourcesContent":["//\n// Copyright 2025 DXOS.org\n//\n\n/**\n * Options for creating a BaseError.\n */\nexport type BaseErrorOptions = ErrorOptions & {\n /**\n * Override base message.\n */\n message?: string;\n\n /**\n * Structured details about the error.\n */\n context?: Record<string, unknown>;\n};\n\n/**\n * Base class for all DXOS errors.\n */\nexport class BaseError<Name extends string = string> extends Error {\n /**\n * Primary way of defining new error classes.\n * Extended class may specialize constructor for required context params.\n * @param name - Error name.\n * @param message - Default error message.\n */\n static extend<Name extends string = string>(name: Name, message?: string) {\n return class ExtendedError extends BaseError<Name> {\n static override name: Name = name;\n\n static is(error: unknown): error is BaseError {\n return typeof error === 'object' && error !== null && 'name' in error && error.name === name;\n }\n\n static wrap(\n options?: Omit<BaseErrorOptions, 'cause'> & { ifTypeDiffers?: boolean },\n ): (error: unknown) => ExtendedError {\n const wrapFn = (error: unknown) => {\n if (options?.ifTypeDiffers === true && this.is(error)) {\n return error as ExtendedError;\n }\n const newError: ExtendedError = new this({ message
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../../src/base.ts","../../src/cancellation.ts","../../src/context.ts","../../src/errors.ts"],"sourcesContent":["//\n// Copyright 2025 DXOS.org\n//\n\n/**\n * Options for creating a BaseError.\n */\nexport type BaseErrorOptions = ErrorOptions & {\n /**\n * Override base message.\n */\n message?: string;\n\n /**\n * Structured details about the error.\n */\n context?: Record<string, unknown>;\n};\n\n/**\n * Base class for all DXOS errors.\n */\nexport class BaseError<Name extends string = string> extends Error {\n /**\n * Primary way of defining new error classes.\n * Extended class may specialize constructor for required context params.\n * @param name - Error name.\n * @param message - Default error message.\n */\n static extend<Name extends string = string>(name: Name, message?: string) {\n return class ExtendedError extends BaseError<Name> {\n static override name: Name = name;\n\n /**\n * Name equality, not an `instanceof`, so an error rebuilt from the wire still matches.\n * A subclass that renames itself therefore does NOT match its parent, so define\n * siblings rather than a renaming subclass.\n */\n static is(error: unknown): error is BaseError {\n return typeof error === 'object' && error !== null && 'name' in error && error.name === name;\n }\n\n /**\n * Returns a `catch`/`mapError` callback that wraps a thrown value in this class.\n * @param options.ifTypeDiffers - Pass an error of this class through untouched.\n */\n static wrap(\n options?: Omit<BaseErrorOptions, 'cause'> & { ifTypeDiffers?: boolean },\n ): (error: unknown) => ExtendedError {\n const wrapFn = (error: unknown) => {\n if (options?.ifTypeDiffers === true && (this.is(error) || error instanceof this)) {\n return error as ExtendedError;\n }\n const newError: ExtendedError = new this({\n context: options?.context,\n message: options?.message ?? messageOf(error) ?? message,\n cause: error,\n });\n Error.captureStackTrace(newError, wrapFn); // Position stack-trace to start from the caller of `wrap`.\n return newError;\n };\n return wrapFn;\n }\n\n constructor(options?: BaseErrorOptions) {\n super(name, { cause: options?.cause, context: options?.context, message: options?.message ?? message });\n }\n };\n }\n\n // NOTE: Errors go through odd transformations and the private fields seem to break.\n override name: Name;\n context: Record<string, unknown>;\n\n constructor(name: Name, options?: BaseErrorOptions) {\n let message = options?.message;\n if (message && options?.context && Object.keys(options.context).length > 0) {\n message += `: ${JSON.stringify(options?.context)}`;\n }\n\n super(message, { cause: options?.cause });\n\n this.name = name;\n this.context = options?.context ?? {};\n\n Object.setPrototypeOf(this, new.target.prototype);\n }\n\n /** Fallback message. */\n override get message() {\n return this.constructor.name;\n }\n\n // For effect error matching.\n get _tag(): Name {\n return this.name;\n }\n}\n\n/**\n * The message carried by a thrown value.\n *\n * Duck-types `message` rather than testing `instanceof Error`, so a cross-realm error or a\n * rejected error-shaped object reads the same as a local one, matching how `encodeError`\n * in `@dxos/protocols` decides what to put on the wire.\n */\nexport const messageOf = (error: unknown): string | undefined => {\n if (typeof error === 'string') {\n return error;\n }\n if (typeof error === 'object' && error !== null && 'message' in error) {\n const { message } = error as { message?: unknown };\n return typeof message === 'string' ? message : undefined;\n }\n return undefined;\n};\n","//\n// Copyright 2026 DXOS.org\n//\n\n/**\n * The only two `DOMException` names that mean \"the user (or an abort signal) stopped this\",\n * rather than \"the operation failed\". WebAuthn raises `NotAllowedError` both when the prompt is\n * dismissed and when it times out; an aborted `AbortSignal` raises `AbortError`.\n */\nconst CANCELLATION_NAMES: ReadonlySet<string> = new Set(['NotAllowedError', 'AbortError']);\n\n/** Bound so a malformed chain (or a self-referential `cause`) cannot spin. */\nconst MAX_CAUSE_DEPTH = 8;\n\n/**\n * Marker a domain error sets to declare itself a user cancellation, so a generic reporter can\n * recognise it without depending on the package that defines it (e.g. `PasskeyError.Dismissed`,\n * which is raised for a dismissal the platform reported without a `DOMException`).\n */\nexport interface Cancellation {\n readonly cancellation: true;\n}\n\nconst isMarked = (value: object): boolean => 'cancellation' in value && value.cancellation === true;\n\n/**\n * Whether a thrown value is a cancellation rather than a genuine failure.\n *\n * Walks the `cause` chain because a domain error wraps the original `DOMException` — the\n * interactive ceremony that raised it sits several frames below the handler that reports it.\n * Only the two names above match, so every other `DOMException` stays an error.\n */\nexport const isCancellation = (error: unknown): boolean => {\n let current: unknown = error;\n for (let depth = 0; depth < MAX_CAUSE_DEPTH && current !== null && current !== undefined; ++depth) {\n if (typeof current === 'object' && isMarked(current)) {\n return true;\n }\n if (\n typeof DOMException !== 'undefined' &&\n current instanceof DOMException &&\n CANCELLATION_NAMES.has(current.name)\n ) {\n return true;\n }\n if (typeof current !== 'object' || !('cause' in current)) {\n return false;\n }\n const { cause } = current;\n if (cause === current) {\n return false;\n }\n current = cause;\n }\n\n return false;\n};\n","//\n// Copyright 2026 DXOS.org\n//\n\n/**\n * Reads an error's structured `context`, which {@link BaseError} declares and a plain `Error` may\n * still carry: a failure raised outside DXOS travels the same log and telemetry paths.\n */\nconst readContext = (error: Error): object =>\n 'context' in error && typeof error.context === 'object' && error.context ? error.context : {};\n\n/**\n * Merges structured detail into an error's `context`, returning the same error.\n *\n * Both of the repo's error codecs carry this field, so a failure annotated here reaches the\n * downloadable log (`computeContext` in `@dxos/log`) and the reset dialog's copy payload without\n * either of them knowing which subsystem produced it.\n */\nexport const withContext = <T>(error: T, context: Record<string, unknown>): T => {\n if (error instanceof Error) {\n Object.assign(error, { context: { ...readContext(error), ...context } });\n }\n return error;\n};\n","//\n// Copyright 2025 DXOS.org\n//\n\nimport { BaseError } from './base.ts';\n\nexport class ApiError extends BaseError.extend('ApiError', 'API error') {}\n\nexport class SystemError extends BaseError.extend('SystemError', 'System error') {}\n\nexport class InternalError extends BaseError.extend('InternalError', 'Internal error') {}\n\nexport class TimeoutError extends BaseError.extend('TimeoutError', 'Timeout') {}\n\nexport class AbortedError extends BaseError.extend('AbortedError', 'Aborted') {}\n\nexport class NotImplementedError extends BaseError.extend('NotImplementedError', 'Not implemented') {}\n\nexport class RuntimeServiceError extends BaseError.extend('RuntimeServiceError', 'Runtime service error') {}\n"],"mappings":";;;;AAsBA,IAA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,CAAC,CAAC,CAAC;AAE/E,IAAa,sBAAb,cAAyC,UAAU,OAAO,uBAAuB,iBAAiB,CAAC,CAAC,CAAC;AAErG,IAAa,sBAAb,cAAyC,UAAU,OAAO,uBAAuB,uBAAuB,CAAC,CAAC,CAAC"}
|
package/dist/types/src/base.d.ts
CHANGED
|
@@ -33,7 +33,16 @@ export declare class BaseError<Name extends string = string> extends Error {
|
|
|
33
33
|
};
|
|
34
34
|
isError(error: unknown): error is Error;
|
|
35
35
|
name: Name;
|
|
36
|
+
/**
|
|
37
|
+
* Name equality, not an `instanceof`, so an error rebuilt from the wire still matches.
|
|
38
|
+
* A subclass that renames itself therefore does NOT match its parent, so define
|
|
39
|
+
* siblings rather than a renaming subclass.
|
|
40
|
+
*/
|
|
36
41
|
is(error: unknown): error is BaseError;
|
|
42
|
+
/**
|
|
43
|
+
* Returns a `catch`/`mapError` callback that wraps a thrown value in this class.
|
|
44
|
+
* @param options.ifTypeDiffers - Pass an error of this class through untouched.
|
|
45
|
+
*/
|
|
37
46
|
wrap(options?: Omit<BaseErrorOptions, 'cause'> & {
|
|
38
47
|
ifTypeDiffers?: boolean;
|
|
39
48
|
}): (error: unknown) => {
|
|
@@ -57,4 +66,12 @@ export declare class BaseError<Name extends string = string> extends Error {
|
|
|
57
66
|
get message(): string;
|
|
58
67
|
get _tag(): Name;
|
|
59
68
|
}
|
|
69
|
+
/**
|
|
70
|
+
* The message carried by a thrown value.
|
|
71
|
+
*
|
|
72
|
+
* Duck-types `message` rather than testing `instanceof Error`, so a cross-realm error or a
|
|
73
|
+
* rejected error-shaped object reads the same as a local one, matching how `encodeError`
|
|
74
|
+
* in `@dxos/protocols` decides what to put on the wire.
|
|
75
|
+
*/
|
|
76
|
+
export declare const messageOf: (error: unknown) => string | undefined;
|
|
60
77
|
//# sourceMappingURL=base.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../src/base.ts"],"names":[],"mappings":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nB1B,IAAI,SAAS,MAAM,iBAAiB,IAAI,YAAY,MAAM;;;;MAuCvE;IAGQ,IAAI,EAAE,IAAI,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAEjC,YAAY,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,EAAE,gBAAgB,EAYjD;IAED,wBAAwB;IACxB,IAAa,OAAO,WAEnB;IAGD,IAAI,IAAI,IAAI,IAAI,CAEf;CACF;AAED;;;;;;GAMG;AACH,eAAO,MAAM,SAAS,UAAW,OAAO,KAAG,MAAM,GAAG,SASnD,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Marker a domain error sets to declare itself a user cancellation, so a generic reporter can
|
|
3
|
+
* recognise it without depending on the package that defines it (e.g. `PasskeyError.Dismissed`,
|
|
4
|
+
* which is raised for a dismissal the platform reported without a `DOMException`).
|
|
5
|
+
*/
|
|
6
|
+
export interface Cancellation {
|
|
7
|
+
readonly cancellation: true;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Whether a thrown value is a cancellation rather than a genuine failure.
|
|
11
|
+
*
|
|
12
|
+
* Walks the `cause` chain because a domain error wraps the original `DOMException` — the
|
|
13
|
+
* interactive ceremony that raised it sits several frames below the handler that reports it.
|
|
14
|
+
* Only the two names above match, so every other `DOMException` stays an error.
|
|
15
|
+
*/
|
|
16
|
+
export declare const isCancellation: (error: unknown) => boolean;
|
|
17
|
+
//# sourceMappingURL=cancellation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cancellation.d.ts","sourceRoot":"","sources":["../../../src/cancellation.ts"],"names":[],"mappings":"AAcA;;;;GAIG;AACH,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,YAAY,EAAE,IAAI,CAAC;CAC7B;AAID;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,UAAW,OAAO,KAAG,OAwB/C,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Merges structured detail into an error's `context`, returning the same error.
|
|
3
|
+
*
|
|
4
|
+
* Both of the repo's error codecs carry this field, so a failure annotated here reaches the
|
|
5
|
+
* downloadable log (`computeContext` in `@dxos/log`) and the reset dialog's copy payload without
|
|
6
|
+
* either of them knowing which subsystem produced it.
|
|
7
|
+
*/
|
|
8
|
+
export declare const withContext: <T>(error: T, context: Record<string, unknown>) => T;
|
|
9
|
+
//# sourceMappingURL=context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/context.ts"],"names":[],"mappings":"AAWA;;;;;;GAMG;AACH,eAAO,MAAM,WAAW,GAAI,CAAC,SAAS,CAAC,WAAW,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAG,CAK3E,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { BaseError } from './base';
|
|
1
|
+
import { BaseError } from './base.ts';
|
|
2
2
|
declare const ApiError_base: {
|
|
3
|
-
new (options?: import("./base").BaseErrorOptions): {
|
|
3
|
+
new (options?: import("./base.ts").BaseErrorOptions): {
|
|
4
4
|
cause?: unknown;
|
|
5
5
|
stack?: string;
|
|
6
6
|
name: "ApiError";
|
|
@@ -11,7 +11,7 @@ declare const ApiError_base: {
|
|
|
11
11
|
isError(error: unknown): error is Error;
|
|
12
12
|
name: "ApiError";
|
|
13
13
|
is(error: unknown): boolean;
|
|
14
|
-
wrap(options?: (Omit<import("./base").BaseErrorOptions, "cause"> & {
|
|
14
|
+
wrap(options?: (Omit<import("./base.ts").BaseErrorOptions, "cause"> & {
|
|
15
15
|
ifTypeDiffers?: boolean;
|
|
16
16
|
}) | undefined): (error: unknown) => {
|
|
17
17
|
cause?: unknown;
|
|
@@ -22,7 +22,7 @@ declare const ApiError_base: {
|
|
|
22
22
|
get _tag(): "ApiError";
|
|
23
23
|
};
|
|
24
24
|
extend<Name extends string = string>(name: Name, message?: string): {
|
|
25
|
-
new (options?: import("./base").BaseErrorOptions): {
|
|
25
|
+
new (options?: import("./base.ts").BaseErrorOptions): {
|
|
26
26
|
cause?: unknown;
|
|
27
27
|
stack?: string;
|
|
28
28
|
name: Name;
|
|
@@ -33,7 +33,7 @@ declare const ApiError_base: {
|
|
|
33
33
|
isError(error: unknown): error is Error;
|
|
34
34
|
name: Name;
|
|
35
35
|
is(error: unknown): error is BaseError;
|
|
36
|
-
wrap(options?: Omit<import("./base").BaseErrorOptions, 'cause'> & {
|
|
36
|
+
wrap(options?: Omit<import("./base.ts").BaseErrorOptions, 'cause'> & {
|
|
37
37
|
ifTypeDiffers?: boolean;
|
|
38
38
|
}): (error: unknown) => {
|
|
39
39
|
cause?: unknown;
|
|
@@ -55,7 +55,7 @@ declare const ApiError_base: {
|
|
|
55
55
|
export declare class ApiError extends ApiError_base {
|
|
56
56
|
}
|
|
57
57
|
declare const SystemError_base: {
|
|
58
|
-
new (options?: import("./base").BaseErrorOptions): {
|
|
58
|
+
new (options?: import("./base.ts").BaseErrorOptions): {
|
|
59
59
|
cause?: unknown;
|
|
60
60
|
stack?: string;
|
|
61
61
|
name: "SystemError";
|
|
@@ -66,7 +66,7 @@ declare const SystemError_base: {
|
|
|
66
66
|
isError(error: unknown): error is Error;
|
|
67
67
|
name: "SystemError";
|
|
68
68
|
is(error: unknown): error is BaseError;
|
|
69
|
-
wrap(options?: (Omit<import("./base").BaseErrorOptions, "cause"> & {
|
|
69
|
+
wrap(options?: (Omit<import("./base.ts").BaseErrorOptions, "cause"> & {
|
|
70
70
|
ifTypeDiffers?: boolean;
|
|
71
71
|
}) | undefined): (error: unknown) => {
|
|
72
72
|
cause?: unknown;
|
|
@@ -77,7 +77,7 @@ declare const SystemError_base: {
|
|
|
77
77
|
get _tag(): "SystemError";
|
|
78
78
|
};
|
|
79
79
|
extend<Name extends string = string>(name: Name, message?: string): {
|
|
80
|
-
new (options?: import("./base").BaseErrorOptions): {
|
|
80
|
+
new (options?: import("./base.ts").BaseErrorOptions): {
|
|
81
81
|
cause?: unknown;
|
|
82
82
|
stack?: string;
|
|
83
83
|
name: Name;
|
|
@@ -88,7 +88,7 @@ declare const SystemError_base: {
|
|
|
88
88
|
isError(error: unknown): error is Error;
|
|
89
89
|
name: Name;
|
|
90
90
|
is(error: unknown): error is BaseError;
|
|
91
|
-
wrap(options?: Omit<import("./base").BaseErrorOptions, 'cause'> & {
|
|
91
|
+
wrap(options?: Omit<import("./base.ts").BaseErrorOptions, 'cause'> & {
|
|
92
92
|
ifTypeDiffers?: boolean;
|
|
93
93
|
}): (error: unknown) => {
|
|
94
94
|
cause?: unknown;
|
|
@@ -110,7 +110,7 @@ declare const SystemError_base: {
|
|
|
110
110
|
export declare class SystemError extends SystemError_base {
|
|
111
111
|
}
|
|
112
112
|
declare const InternalError_base: {
|
|
113
|
-
new (options?: import("./base").BaseErrorOptions): {
|
|
113
|
+
new (options?: import("./base.ts").BaseErrorOptions): {
|
|
114
114
|
cause?: unknown;
|
|
115
115
|
stack?: string;
|
|
116
116
|
name: "InternalError";
|
|
@@ -121,7 +121,7 @@ declare const InternalError_base: {
|
|
|
121
121
|
isError(error: unknown): error is Error;
|
|
122
122
|
name: "InternalError";
|
|
123
123
|
is(error: unknown): error is BaseError;
|
|
124
|
-
wrap(options?: (Omit<import("./base").BaseErrorOptions, "cause"> & {
|
|
124
|
+
wrap(options?: (Omit<import("./base.ts").BaseErrorOptions, "cause"> & {
|
|
125
125
|
ifTypeDiffers?: boolean;
|
|
126
126
|
}) | undefined): (error: unknown) => {
|
|
127
127
|
cause?: unknown;
|
|
@@ -132,7 +132,7 @@ declare const InternalError_base: {
|
|
|
132
132
|
get _tag(): "InternalError";
|
|
133
133
|
};
|
|
134
134
|
extend<Name extends string = string>(name: Name, message?: string): {
|
|
135
|
-
new (options?: import("./base").BaseErrorOptions): {
|
|
135
|
+
new (options?: import("./base.ts").BaseErrorOptions): {
|
|
136
136
|
cause?: unknown;
|
|
137
137
|
stack?: string;
|
|
138
138
|
name: Name;
|
|
@@ -143,7 +143,7 @@ declare const InternalError_base: {
|
|
|
143
143
|
isError(error: unknown): error is Error;
|
|
144
144
|
name: Name;
|
|
145
145
|
is(error: unknown): error is BaseError;
|
|
146
|
-
wrap(options?: Omit<import("./base").BaseErrorOptions, 'cause'> & {
|
|
146
|
+
wrap(options?: Omit<import("./base.ts").BaseErrorOptions, 'cause'> & {
|
|
147
147
|
ifTypeDiffers?: boolean;
|
|
148
148
|
}): (error: unknown) => {
|
|
149
149
|
cause?: unknown;
|
|
@@ -165,7 +165,7 @@ declare const InternalError_base: {
|
|
|
165
165
|
export declare class InternalError extends InternalError_base {
|
|
166
166
|
}
|
|
167
167
|
declare const TimeoutError_base: {
|
|
168
|
-
new (options?: import("./base").BaseErrorOptions): {
|
|
168
|
+
new (options?: import("./base.ts").BaseErrorOptions): {
|
|
169
169
|
cause?: unknown;
|
|
170
170
|
stack?: string;
|
|
171
171
|
name: "TimeoutError";
|
|
@@ -176,7 +176,7 @@ declare const TimeoutError_base: {
|
|
|
176
176
|
isError(error: unknown): error is Error;
|
|
177
177
|
name: "TimeoutError";
|
|
178
178
|
is(error: unknown): error is BaseError;
|
|
179
|
-
wrap(options?: (Omit<import("./base").BaseErrorOptions, "cause"> & {
|
|
179
|
+
wrap(options?: (Omit<import("./base.ts").BaseErrorOptions, "cause"> & {
|
|
180
180
|
ifTypeDiffers?: boolean;
|
|
181
181
|
}) | undefined): (error: unknown) => {
|
|
182
182
|
cause?: unknown;
|
|
@@ -187,7 +187,7 @@ declare const TimeoutError_base: {
|
|
|
187
187
|
get _tag(): "TimeoutError";
|
|
188
188
|
};
|
|
189
189
|
extend<Name extends string = string>(name: Name, message?: string): {
|
|
190
|
-
new (options?: import("./base").BaseErrorOptions): {
|
|
190
|
+
new (options?: import("./base.ts").BaseErrorOptions): {
|
|
191
191
|
cause?: unknown;
|
|
192
192
|
stack?: string;
|
|
193
193
|
name: Name;
|
|
@@ -198,7 +198,7 @@ declare const TimeoutError_base: {
|
|
|
198
198
|
isError(error: unknown): error is Error;
|
|
199
199
|
name: Name;
|
|
200
200
|
is(error: unknown): error is BaseError;
|
|
201
|
-
wrap(options?: Omit<import("./base").BaseErrorOptions, 'cause'> & {
|
|
201
|
+
wrap(options?: Omit<import("./base.ts").BaseErrorOptions, 'cause'> & {
|
|
202
202
|
ifTypeDiffers?: boolean;
|
|
203
203
|
}): (error: unknown) => {
|
|
204
204
|
cause?: unknown;
|
|
@@ -220,7 +220,7 @@ declare const TimeoutError_base: {
|
|
|
220
220
|
export declare class TimeoutError extends TimeoutError_base {
|
|
221
221
|
}
|
|
222
222
|
declare const AbortedError_base: {
|
|
223
|
-
new (options?: import("./base").BaseErrorOptions): {
|
|
223
|
+
new (options?: import("./base.ts").BaseErrorOptions): {
|
|
224
224
|
cause?: unknown;
|
|
225
225
|
stack?: string;
|
|
226
226
|
name: "AbortedError";
|
|
@@ -231,7 +231,7 @@ declare const AbortedError_base: {
|
|
|
231
231
|
isError(error: unknown): error is Error;
|
|
232
232
|
name: "AbortedError";
|
|
233
233
|
is(error: unknown): error is BaseError;
|
|
234
|
-
wrap(options?: (Omit<import("./base").BaseErrorOptions, "cause"> & {
|
|
234
|
+
wrap(options?: (Omit<import("./base.ts").BaseErrorOptions, "cause"> & {
|
|
235
235
|
ifTypeDiffers?: boolean;
|
|
236
236
|
}) | undefined): (error: unknown) => {
|
|
237
237
|
cause?: unknown;
|
|
@@ -242,7 +242,7 @@ declare const AbortedError_base: {
|
|
|
242
242
|
get _tag(): "AbortedError";
|
|
243
243
|
};
|
|
244
244
|
extend<Name extends string = string>(name: Name, message?: string): {
|
|
245
|
-
new (options?: import("./base").BaseErrorOptions): {
|
|
245
|
+
new (options?: import("./base.ts").BaseErrorOptions): {
|
|
246
246
|
cause?: unknown;
|
|
247
247
|
stack?: string;
|
|
248
248
|
name: Name;
|
|
@@ -253,7 +253,7 @@ declare const AbortedError_base: {
|
|
|
253
253
|
isError(error: unknown): error is Error;
|
|
254
254
|
name: Name;
|
|
255
255
|
is(error: unknown): error is BaseError;
|
|
256
|
-
wrap(options?: Omit<import("./base").BaseErrorOptions, 'cause'> & {
|
|
256
|
+
wrap(options?: Omit<import("./base.ts").BaseErrorOptions, 'cause'> & {
|
|
257
257
|
ifTypeDiffers?: boolean;
|
|
258
258
|
}): (error: unknown) => {
|
|
259
259
|
cause?: unknown;
|
|
@@ -275,7 +275,7 @@ declare const AbortedError_base: {
|
|
|
275
275
|
export declare class AbortedError extends AbortedError_base {
|
|
276
276
|
}
|
|
277
277
|
declare const NotImplementedError_base: {
|
|
278
|
-
new (options?: import("./base").BaseErrorOptions): {
|
|
278
|
+
new (options?: import("./base.ts").BaseErrorOptions): {
|
|
279
279
|
cause?: unknown;
|
|
280
280
|
stack?: string;
|
|
281
281
|
name: "NotImplementedError";
|
|
@@ -286,7 +286,7 @@ declare const NotImplementedError_base: {
|
|
|
286
286
|
isError(error: unknown): error is Error;
|
|
287
287
|
name: "NotImplementedError";
|
|
288
288
|
is(error: unknown): error is BaseError;
|
|
289
|
-
wrap(options?: (Omit<import("./base").BaseErrorOptions, "cause"> & {
|
|
289
|
+
wrap(options?: (Omit<import("./base.ts").BaseErrorOptions, "cause"> & {
|
|
290
290
|
ifTypeDiffers?: boolean;
|
|
291
291
|
}) | undefined): (error: unknown) => {
|
|
292
292
|
cause?: unknown;
|
|
@@ -297,7 +297,7 @@ declare const NotImplementedError_base: {
|
|
|
297
297
|
get _tag(): "NotImplementedError";
|
|
298
298
|
};
|
|
299
299
|
extend<Name extends string = string>(name: Name, message?: string): {
|
|
300
|
-
new (options?: import("./base").BaseErrorOptions): {
|
|
300
|
+
new (options?: import("./base.ts").BaseErrorOptions): {
|
|
301
301
|
cause?: unknown;
|
|
302
302
|
stack?: string;
|
|
303
303
|
name: Name;
|
|
@@ -308,7 +308,7 @@ declare const NotImplementedError_base: {
|
|
|
308
308
|
isError(error: unknown): error is Error;
|
|
309
309
|
name: Name;
|
|
310
310
|
is(error: unknown): error is BaseError;
|
|
311
|
-
wrap(options?: Omit<import("./base").BaseErrorOptions, 'cause'> & {
|
|
311
|
+
wrap(options?: Omit<import("./base.ts").BaseErrorOptions, 'cause'> & {
|
|
312
312
|
ifTypeDiffers?: boolean;
|
|
313
313
|
}): (error: unknown) => {
|
|
314
314
|
cause?: unknown;
|
|
@@ -330,7 +330,7 @@ declare const NotImplementedError_base: {
|
|
|
330
330
|
export declare class NotImplementedError extends NotImplementedError_base {
|
|
331
331
|
}
|
|
332
332
|
declare const RuntimeServiceError_base: {
|
|
333
|
-
new (options?: import("./base").BaseErrorOptions): {
|
|
333
|
+
new (options?: import("./base.ts").BaseErrorOptions): {
|
|
334
334
|
cause?: unknown;
|
|
335
335
|
stack?: string;
|
|
336
336
|
name: "RuntimeServiceError";
|
|
@@ -341,7 +341,7 @@ declare const RuntimeServiceError_base: {
|
|
|
341
341
|
isError(error: unknown): error is Error;
|
|
342
342
|
name: "RuntimeServiceError";
|
|
343
343
|
is(error: unknown): error is BaseError;
|
|
344
|
-
wrap(options?: (Omit<import("./base").BaseErrorOptions, "cause"> & {
|
|
344
|
+
wrap(options?: (Omit<import("./base.ts").BaseErrorOptions, "cause"> & {
|
|
345
345
|
ifTypeDiffers?: boolean;
|
|
346
346
|
}) | undefined): (error: unknown) => {
|
|
347
347
|
cause?: unknown;
|
|
@@ -352,7 +352,7 @@ declare const RuntimeServiceError_base: {
|
|
|
352
352
|
get _tag(): "RuntimeServiceError";
|
|
353
353
|
};
|
|
354
354
|
extend<Name extends string = string>(name: Name, message?: string): {
|
|
355
|
-
new (options?: import("./base").BaseErrorOptions): {
|
|
355
|
+
new (options?: import("./base.ts").BaseErrorOptions): {
|
|
356
356
|
cause?: unknown;
|
|
357
357
|
stack?: string;
|
|
358
358
|
name: Name;
|
|
@@ -363,7 +363,7 @@ declare const RuntimeServiceError_base: {
|
|
|
363
363
|
isError(error: unknown): error is Error;
|
|
364
364
|
name: Name;
|
|
365
365
|
is(error: unknown): error is BaseError;
|
|
366
|
-
wrap(options?: Omit<import("./base").BaseErrorOptions, 'cause'> & {
|
|
366
|
+
wrap(options?: Omit<import("./base.ts").BaseErrorOptions, 'cause'> & {
|
|
367
367
|
ifTypeDiffers?: boolean;
|
|
368
368
|
}): (error: unknown) => {
|
|
369
369
|
cause?: unknown;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/errors.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/errors.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtC,qBAAa,QAAS,SAAQ,aAAyC;CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAE1E,qBAAa,WAAY,SAAQ,gBAA+C;CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEnF,qBAAa,aAAc,SAAQ,kBAAmD;CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEzF,qBAAa,YAAa,SAAQ,iBAA2C;CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEhF,qBAAa,YAAa,SAAQ,iBAA2C;CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEhF,qBAAa,mBAAoB,SAAQ,wBAA0D;CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtG,qBAAa,mBAAoB,SAAQ,wBAAgE;CAAG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC"}
|