@dxos/errors 0.8.4-main.5ad4a44 → 0.8.4-main.5e0aa09add

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.
@@ -1,61 +1,53 @@
1
1
  import { BaseError } from './base';
2
2
  declare const ApiError_base: {
3
3
  new (options?: import("./base").BaseErrorOptions): {
4
- "__#private@#code": "API";
5
- "__#private@#context": Record<string, unknown>;
6
- get name(): "API";
7
- get message(): string;
8
- get code(): "API";
9
- get _tag(): "API";
10
- get context(): Record<string, unknown>;
11
- stack?: string;
12
4
  cause?: unknown;
13
- };
14
- code: "API";
15
- is(error: unknown): error is BaseError;
16
- wrap(options?: Omit<import("./base").BaseErrorOptions, "cause">): (error: unknown) => {
17
- "__#private@#code": "API";
18
- "__#private@#context": Record<string, unknown>;
19
- get name(): "API";
20
- get message(): string;
21
- get code(): "API";
22
- get _tag(): "API";
23
- get context(): Record<string, unknown>;
24
5
  stack?: string;
6
+ name: "ApiError";
7
+ context: Record<string, unknown>;
8
+ get message(): string;
9
+ get _tag(): "ApiError";
10
+ };
11
+ isError(error: unknown): error is Error;
12
+ name: "ApiError";
13
+ is(error: unknown): boolean;
14
+ wrap(options?: (Omit<import("./base").BaseErrorOptions, "cause"> & {
15
+ ifTypeDiffers?: boolean;
16
+ }) | undefined): (error: unknown) => {
25
17
  cause?: unknown;
18
+ stack?: string;
19
+ name: "ApiError";
20
+ context: Record<string, unknown>;
21
+ get message(): string;
22
+ get _tag(): "ApiError";
26
23
  };
27
- extend<Code extends string = string>(code: Code, message?: string): {
24
+ extend<Name extends string = string>(name: Name, message?: string): {
28
25
  new (options?: import("./base").BaseErrorOptions): {
29
- "__#private@#code": Code;
30
- "__#private@#context": Record<string, unknown>;
31
- get name(): Code;
32
- get message(): string;
33
- get code(): Code;
34
- get _tag(): Code;
35
- get context(): Record<string, unknown>;
36
- stack?: string;
37
26
  cause?: unknown;
27
+ stack?: string;
28
+ name: Name;
29
+ context: Record<string, unknown>;
30
+ get message(): string;
31
+ get _tag(): Name;
38
32
  };
39
- code: Code;
33
+ isError(error: unknown): error is Error;
34
+ name: Name;
40
35
  is(error: unknown): error is BaseError;
41
- wrap(options?: Omit<import("./base").BaseErrorOptions, "cause">): (error: unknown) => {
42
- "__#private@#code": Code;
43
- "__#private@#context": Record<string, unknown>;
44
- get name(): Code;
45
- get message(): string;
46
- get code(): Code;
47
- get _tag(): Code;
48
- get context(): Record<string, unknown>;
49
- stack?: string;
36
+ wrap(options?: Omit<import("./base").BaseErrorOptions, 'cause'> & {
37
+ ifTypeDiffers?: boolean;
38
+ }): (error: unknown) => {
50
39
  cause?: unknown;
40
+ stack?: string;
41
+ name: Name;
42
+ context: Record<string, unknown>;
43
+ get message(): string;
44
+ get _tag(): Name;
51
45
  };
52
- extend<Code extends string = string>(code: Code, message?: string): /*elided*/ any;
53
- isError(error: unknown): error is Error;
46
+ extend<Name extends string = string>(name: Name, message?: string): /*elided*/ any;
54
47
  captureStackTrace(targetObject: object, constructorOpt?: Function): void;
55
48
  prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
56
49
  stackTraceLimit: number;
57
50
  };
58
- isError(error: unknown): error is Error;
59
51
  captureStackTrace(targetObject: object, constructorOpt?: Function): void;
60
52
  prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
61
53
  stackTraceLimit: number;
@@ -64,61 +56,53 @@ export declare class ApiError extends ApiError_base {
64
56
  }
65
57
  declare const SystemError_base: {
66
58
  new (options?: import("./base").BaseErrorOptions): {
67
- "__#private@#code": "SYSTEM";
68
- "__#private@#context": Record<string, unknown>;
69
- get name(): "SYSTEM";
70
- get message(): string;
71
- get code(): "SYSTEM";
72
- get _tag(): "SYSTEM";
73
- get context(): Record<string, unknown>;
74
- stack?: string;
75
59
  cause?: unknown;
60
+ stack?: string;
61
+ name: "SystemError";
62
+ context: Record<string, unknown>;
63
+ get message(): string;
64
+ get _tag(): "SystemError";
76
65
  };
77
- code: "SYSTEM";
66
+ isError(error: unknown): error is Error;
67
+ name: "SystemError";
78
68
  is(error: unknown): error is BaseError;
79
- wrap(options?: Omit<import("./base").BaseErrorOptions, "cause">): (error: unknown) => {
80
- "__#private@#code": "SYSTEM";
81
- "__#private@#context": Record<string, unknown>;
82
- get name(): "SYSTEM";
83
- get message(): string;
84
- get code(): "SYSTEM";
85
- get _tag(): "SYSTEM";
86
- get context(): Record<string, unknown>;
87
- stack?: string;
69
+ wrap(options?: (Omit<import("./base").BaseErrorOptions, "cause"> & {
70
+ ifTypeDiffers?: boolean;
71
+ }) | undefined): (error: unknown) => {
88
72
  cause?: unknown;
73
+ stack?: string;
74
+ name: "SystemError";
75
+ context: Record<string, unknown>;
76
+ get message(): string;
77
+ get _tag(): "SystemError";
89
78
  };
90
- extend<Code extends string = string>(code: Code, message?: string): {
79
+ extend<Name extends string = string>(name: Name, message?: string): {
91
80
  new (options?: import("./base").BaseErrorOptions): {
92
- "__#private@#code": Code;
93
- "__#private@#context": Record<string, unknown>;
94
- get name(): Code;
95
- get message(): string;
96
- get code(): Code;
97
- get _tag(): Code;
98
- get context(): Record<string, unknown>;
99
- stack?: string;
100
81
  cause?: unknown;
82
+ stack?: string;
83
+ name: Name;
84
+ context: Record<string, unknown>;
85
+ get message(): string;
86
+ get _tag(): Name;
101
87
  };
102
- code: Code;
88
+ isError(error: unknown): error is Error;
89
+ name: Name;
103
90
  is(error: unknown): error is BaseError;
104
- wrap(options?: Omit<import("./base").BaseErrorOptions, "cause">): (error: unknown) => {
105
- "__#private@#code": Code;
106
- "__#private@#context": Record<string, unknown>;
107
- get name(): Code;
108
- get message(): string;
109
- get code(): Code;
110
- get _tag(): Code;
111
- get context(): Record<string, unknown>;
112
- stack?: string;
91
+ wrap(options?: Omit<import("./base").BaseErrorOptions, 'cause'> & {
92
+ ifTypeDiffers?: boolean;
93
+ }): (error: unknown) => {
113
94
  cause?: unknown;
95
+ stack?: string;
96
+ name: Name;
97
+ context: Record<string, unknown>;
98
+ get message(): string;
99
+ get _tag(): Name;
114
100
  };
115
- extend<Code extends string = string>(code: Code, message?: string): /*elided*/ any;
116
- isError(error: unknown): error is Error;
101
+ extend<Name extends string = string>(name: Name, message?: string): /*elided*/ any;
117
102
  captureStackTrace(targetObject: object, constructorOpt?: Function): void;
118
103
  prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
119
104
  stackTraceLimit: number;
120
105
  };
121
- isError(error: unknown): error is Error;
122
106
  captureStackTrace(targetObject: object, constructorOpt?: Function): void;
123
107
  prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
124
108
  stackTraceLimit: number;
@@ -127,61 +111,53 @@ export declare class SystemError extends SystemError_base {
127
111
  }
128
112
  declare const InternalError_base: {
129
113
  new (options?: import("./base").BaseErrorOptions): {
130
- "__#private@#code": "INTERNAL";
131
- "__#private@#context": Record<string, unknown>;
132
- get name(): "INTERNAL";
133
- get message(): string;
134
- get code(): "INTERNAL";
135
- get _tag(): "INTERNAL";
136
- get context(): Record<string, unknown>;
137
- stack?: string;
138
114
  cause?: unknown;
115
+ stack?: string;
116
+ name: "InternalError";
117
+ context: Record<string, unknown>;
118
+ get message(): string;
119
+ get _tag(): "InternalError";
139
120
  };
140
- code: "INTERNAL";
121
+ isError(error: unknown): error is Error;
122
+ name: "InternalError";
141
123
  is(error: unknown): error is BaseError;
142
- wrap(options?: Omit<import("./base").BaseErrorOptions, "cause">): (error: unknown) => {
143
- "__#private@#code": "INTERNAL";
144
- "__#private@#context": Record<string, unknown>;
145
- get name(): "INTERNAL";
146
- get message(): string;
147
- get code(): "INTERNAL";
148
- get _tag(): "INTERNAL";
149
- get context(): Record<string, unknown>;
150
- stack?: string;
124
+ wrap(options?: (Omit<import("./base").BaseErrorOptions, "cause"> & {
125
+ ifTypeDiffers?: boolean;
126
+ }) | undefined): (error: unknown) => {
151
127
  cause?: unknown;
128
+ stack?: string;
129
+ name: "InternalError";
130
+ context: Record<string, unknown>;
131
+ get message(): string;
132
+ get _tag(): "InternalError";
152
133
  };
153
- extend<Code extends string = string>(code: Code, message?: string): {
134
+ extend<Name extends string = string>(name: Name, message?: string): {
154
135
  new (options?: import("./base").BaseErrorOptions): {
155
- "__#private@#code": Code;
156
- "__#private@#context": Record<string, unknown>;
157
- get name(): Code;
158
- get message(): string;
159
- get code(): Code;
160
- get _tag(): Code;
161
- get context(): Record<string, unknown>;
162
- stack?: string;
163
136
  cause?: unknown;
137
+ stack?: string;
138
+ name: Name;
139
+ context: Record<string, unknown>;
140
+ get message(): string;
141
+ get _tag(): Name;
164
142
  };
165
- code: Code;
143
+ isError(error: unknown): error is Error;
144
+ name: Name;
166
145
  is(error: unknown): error is BaseError;
167
- wrap(options?: Omit<import("./base").BaseErrorOptions, "cause">): (error: unknown) => {
168
- "__#private@#code": Code;
169
- "__#private@#context": Record<string, unknown>;
170
- get name(): Code;
171
- get message(): string;
172
- get code(): Code;
173
- get _tag(): Code;
174
- get context(): Record<string, unknown>;
175
- stack?: string;
146
+ wrap(options?: Omit<import("./base").BaseErrorOptions, 'cause'> & {
147
+ ifTypeDiffers?: boolean;
148
+ }): (error: unknown) => {
176
149
  cause?: unknown;
150
+ stack?: string;
151
+ name: Name;
152
+ context: Record<string, unknown>;
153
+ get message(): string;
154
+ get _tag(): Name;
177
155
  };
178
- extend<Code extends string = string>(code: Code, message?: string): /*elided*/ any;
179
- isError(error: unknown): error is Error;
156
+ extend<Name extends string = string>(name: Name, message?: string): /*elided*/ any;
180
157
  captureStackTrace(targetObject: object, constructorOpt?: Function): void;
181
158
  prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
182
159
  stackTraceLimit: number;
183
160
  };
184
- isError(error: unknown): error is Error;
185
161
  captureStackTrace(targetObject: object, constructorOpt?: Function): void;
186
162
  prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
187
163
  stackTraceLimit: number;
@@ -190,61 +166,53 @@ export declare class InternalError extends InternalError_base {
190
166
  }
191
167
  declare const TimeoutError_base: {
192
168
  new (options?: import("./base").BaseErrorOptions): {
193
- "__#private@#code": "TIMEOUT";
194
- "__#private@#context": Record<string, unknown>;
195
- get name(): "TIMEOUT";
196
- get message(): string;
197
- get code(): "TIMEOUT";
198
- get _tag(): "TIMEOUT";
199
- get context(): Record<string, unknown>;
200
- stack?: string;
201
169
  cause?: unknown;
170
+ stack?: string;
171
+ name: "TimeoutError";
172
+ context: Record<string, unknown>;
173
+ get message(): string;
174
+ get _tag(): "TimeoutError";
202
175
  };
203
- code: "TIMEOUT";
176
+ isError(error: unknown): error is Error;
177
+ name: "TimeoutError";
204
178
  is(error: unknown): error is BaseError;
205
- wrap(options?: Omit<import("./base").BaseErrorOptions, "cause">): (error: unknown) => {
206
- "__#private@#code": "TIMEOUT";
207
- "__#private@#context": Record<string, unknown>;
208
- get name(): "TIMEOUT";
209
- get message(): string;
210
- get code(): "TIMEOUT";
211
- get _tag(): "TIMEOUT";
212
- get context(): Record<string, unknown>;
213
- stack?: string;
179
+ wrap(options?: (Omit<import("./base").BaseErrorOptions, "cause"> & {
180
+ ifTypeDiffers?: boolean;
181
+ }) | undefined): (error: unknown) => {
214
182
  cause?: unknown;
183
+ stack?: string;
184
+ name: "TimeoutError";
185
+ context: Record<string, unknown>;
186
+ get message(): string;
187
+ get _tag(): "TimeoutError";
215
188
  };
216
- extend<Code extends string = string>(code: Code, message?: string): {
189
+ extend<Name extends string = string>(name: Name, message?: string): {
217
190
  new (options?: import("./base").BaseErrorOptions): {
218
- "__#private@#code": Code;
219
- "__#private@#context": Record<string, unknown>;
220
- get name(): Code;
221
- get message(): string;
222
- get code(): Code;
223
- get _tag(): Code;
224
- get context(): Record<string, unknown>;
225
- stack?: string;
226
191
  cause?: unknown;
192
+ stack?: string;
193
+ name: Name;
194
+ context: Record<string, unknown>;
195
+ get message(): string;
196
+ get _tag(): Name;
227
197
  };
228
- code: Code;
198
+ isError(error: unknown): error is Error;
199
+ name: Name;
229
200
  is(error: unknown): error is BaseError;
230
- wrap(options?: Omit<import("./base").BaseErrorOptions, "cause">): (error: unknown) => {
231
- "__#private@#code": Code;
232
- "__#private@#context": Record<string, unknown>;
233
- get name(): Code;
234
- get message(): string;
235
- get code(): Code;
236
- get _tag(): Code;
237
- get context(): Record<string, unknown>;
238
- stack?: string;
201
+ wrap(options?: Omit<import("./base").BaseErrorOptions, 'cause'> & {
202
+ ifTypeDiffers?: boolean;
203
+ }): (error: unknown) => {
239
204
  cause?: unknown;
205
+ stack?: string;
206
+ name: Name;
207
+ context: Record<string, unknown>;
208
+ get message(): string;
209
+ get _tag(): Name;
240
210
  };
241
- extend<Code extends string = string>(code: Code, message?: string): /*elided*/ any;
242
- isError(error: unknown): error is Error;
211
+ extend<Name extends string = string>(name: Name, message?: string): /*elided*/ any;
243
212
  captureStackTrace(targetObject: object, constructorOpt?: Function): void;
244
213
  prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
245
214
  stackTraceLimit: number;
246
215
  };
247
- isError(error: unknown): error is Error;
248
216
  captureStackTrace(targetObject: object, constructorOpt?: Function): void;
249
217
  prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
250
218
  stackTraceLimit: number;
@@ -253,61 +221,53 @@ export declare class TimeoutError extends TimeoutError_base {
253
221
  }
254
222
  declare const AbortedError_base: {
255
223
  new (options?: import("./base").BaseErrorOptions): {
256
- "__#private@#code": "ABORTED";
257
- "__#private@#context": Record<string, unknown>;
258
- get name(): "ABORTED";
259
- get message(): string;
260
- get code(): "ABORTED";
261
- get _tag(): "ABORTED";
262
- get context(): Record<string, unknown>;
263
- stack?: string;
264
224
  cause?: unknown;
225
+ stack?: string;
226
+ name: "AbortedError";
227
+ context: Record<string, unknown>;
228
+ get message(): string;
229
+ get _tag(): "AbortedError";
265
230
  };
266
- code: "ABORTED";
231
+ isError(error: unknown): error is Error;
232
+ name: "AbortedError";
267
233
  is(error: unknown): error is BaseError;
268
- wrap(options?: Omit<import("./base").BaseErrorOptions, "cause">): (error: unknown) => {
269
- "__#private@#code": "ABORTED";
270
- "__#private@#context": Record<string, unknown>;
271
- get name(): "ABORTED";
272
- get message(): string;
273
- get code(): "ABORTED";
274
- get _tag(): "ABORTED";
275
- get context(): Record<string, unknown>;
276
- stack?: string;
234
+ wrap(options?: (Omit<import("./base").BaseErrorOptions, "cause"> & {
235
+ ifTypeDiffers?: boolean;
236
+ }) | undefined): (error: unknown) => {
277
237
  cause?: unknown;
238
+ stack?: string;
239
+ name: "AbortedError";
240
+ context: Record<string, unknown>;
241
+ get message(): string;
242
+ get _tag(): "AbortedError";
278
243
  };
279
- extend<Code extends string = string>(code: Code, message?: string): {
244
+ extend<Name extends string = string>(name: Name, message?: string): {
280
245
  new (options?: import("./base").BaseErrorOptions): {
281
- "__#private@#code": Code;
282
- "__#private@#context": Record<string, unknown>;
283
- get name(): Code;
284
- get message(): string;
285
- get code(): Code;
286
- get _tag(): Code;
287
- get context(): Record<string, unknown>;
288
- stack?: string;
289
246
  cause?: unknown;
247
+ stack?: string;
248
+ name: Name;
249
+ context: Record<string, unknown>;
250
+ get message(): string;
251
+ get _tag(): Name;
290
252
  };
291
- code: Code;
253
+ isError(error: unknown): error is Error;
254
+ name: Name;
292
255
  is(error: unknown): error is BaseError;
293
- wrap(options?: Omit<import("./base").BaseErrorOptions, "cause">): (error: unknown) => {
294
- "__#private@#code": Code;
295
- "__#private@#context": Record<string, unknown>;
296
- get name(): Code;
297
- get message(): string;
298
- get code(): Code;
299
- get _tag(): Code;
300
- get context(): Record<string, unknown>;
301
- stack?: string;
256
+ wrap(options?: Omit<import("./base").BaseErrorOptions, 'cause'> & {
257
+ ifTypeDiffers?: boolean;
258
+ }): (error: unknown) => {
302
259
  cause?: unknown;
260
+ stack?: string;
261
+ name: Name;
262
+ context: Record<string, unknown>;
263
+ get message(): string;
264
+ get _tag(): Name;
303
265
  };
304
- extend<Code extends string = string>(code: Code, message?: string): /*elided*/ any;
305
- isError(error: unknown): error is Error;
266
+ extend<Name extends string = string>(name: Name, message?: string): /*elided*/ any;
306
267
  captureStackTrace(targetObject: object, constructorOpt?: Function): void;
307
268
  prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
308
269
  stackTraceLimit: number;
309
270
  };
310
- isError(error: unknown): error is Error;
311
271
  captureStackTrace(targetObject: object, constructorOpt?: Function): void;
312
272
  prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
313
273
  stackTraceLimit: number;
@@ -316,66 +276,113 @@ export declare class AbortedError extends AbortedError_base {
316
276
  }
317
277
  declare const NotImplementedError_base: {
318
278
  new (options?: import("./base").BaseErrorOptions): {
319
- "__#private@#code": "NOT_IMPLEMENTED";
320
- "__#private@#context": Record<string, unknown>;
321
- get name(): "NOT_IMPLEMENTED";
322
- get message(): string;
323
- get code(): "NOT_IMPLEMENTED";
324
- get _tag(): "NOT_IMPLEMENTED";
325
- get context(): Record<string, unknown>;
326
- stack?: string;
327
279
  cause?: unknown;
280
+ stack?: string;
281
+ name: "NotImplementedError";
282
+ context: Record<string, unknown>;
283
+ get message(): string;
284
+ get _tag(): "NotImplementedError";
328
285
  };
329
- code: "NOT_IMPLEMENTED";
286
+ isError(error: unknown): error is Error;
287
+ name: "NotImplementedError";
330
288
  is(error: unknown): error is BaseError;
331
- wrap(options?: Omit<import("./base").BaseErrorOptions, "cause">): (error: unknown) => {
332
- "__#private@#code": "NOT_IMPLEMENTED";
333
- "__#private@#context": Record<string, unknown>;
334
- get name(): "NOT_IMPLEMENTED";
335
- get message(): string;
336
- get code(): "NOT_IMPLEMENTED";
337
- get _tag(): "NOT_IMPLEMENTED";
338
- get context(): Record<string, unknown>;
339
- stack?: string;
289
+ wrap(options?: (Omit<import("./base").BaseErrorOptions, "cause"> & {
290
+ ifTypeDiffers?: boolean;
291
+ }) | undefined): (error: unknown) => {
340
292
  cause?: unknown;
293
+ stack?: string;
294
+ name: "NotImplementedError";
295
+ context: Record<string, unknown>;
296
+ get message(): string;
297
+ get _tag(): "NotImplementedError";
341
298
  };
342
- extend<Code extends string = string>(code: Code, message?: string): {
299
+ extend<Name extends string = string>(name: Name, message?: string): {
343
300
  new (options?: import("./base").BaseErrorOptions): {
344
- "__#private@#code": Code;
345
- "__#private@#context": Record<string, unknown>;
346
- get name(): Code;
347
- get message(): string;
348
- get code(): Code;
349
- get _tag(): Code;
350
- get context(): Record<string, unknown>;
351
- stack?: string;
352
301
  cause?: unknown;
302
+ stack?: string;
303
+ name: Name;
304
+ context: Record<string, unknown>;
305
+ get message(): string;
306
+ get _tag(): Name;
353
307
  };
354
- code: Code;
308
+ isError(error: unknown): error is Error;
309
+ name: Name;
355
310
  is(error: unknown): error is BaseError;
356
- wrap(options?: Omit<import("./base").BaseErrorOptions, "cause">): (error: unknown) => {
357
- "__#private@#code": Code;
358
- "__#private@#context": Record<string, unknown>;
359
- get name(): Code;
360
- get message(): string;
361
- get code(): Code;
362
- get _tag(): Code;
363
- get context(): Record<string, unknown>;
311
+ wrap(options?: Omit<import("./base").BaseErrorOptions, 'cause'> & {
312
+ ifTypeDiffers?: boolean;
313
+ }): (error: unknown) => {
314
+ cause?: unknown;
364
315
  stack?: string;
316
+ name: Name;
317
+ context: Record<string, unknown>;
318
+ get message(): string;
319
+ get _tag(): Name;
320
+ };
321
+ extend<Name extends string = string>(name: Name, message?: string): /*elided*/ any;
322
+ captureStackTrace(targetObject: object, constructorOpt?: Function): void;
323
+ prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
324
+ stackTraceLimit: number;
325
+ };
326
+ captureStackTrace(targetObject: object, constructorOpt?: Function): void;
327
+ prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
328
+ stackTraceLimit: number;
329
+ };
330
+ export declare class NotImplementedError extends NotImplementedError_base {
331
+ }
332
+ declare const RuntimeServiceError_base: {
333
+ new (options?: import("./base").BaseErrorOptions): {
334
+ cause?: unknown;
335
+ stack?: string;
336
+ name: "RuntimeServiceError";
337
+ context: Record<string, unknown>;
338
+ get message(): string;
339
+ get _tag(): "RuntimeServiceError";
340
+ };
341
+ isError(error: unknown): error is Error;
342
+ name: "RuntimeServiceError";
343
+ is(error: unknown): error is BaseError;
344
+ wrap(options?: (Omit<import("./base").BaseErrorOptions, "cause"> & {
345
+ ifTypeDiffers?: boolean;
346
+ }) | undefined): (error: unknown) => {
347
+ cause?: unknown;
348
+ stack?: string;
349
+ name: "RuntimeServiceError";
350
+ context: Record<string, unknown>;
351
+ get message(): string;
352
+ get _tag(): "RuntimeServiceError";
353
+ };
354
+ extend<Name extends string = string>(name: Name, message?: string): {
355
+ new (options?: import("./base").BaseErrorOptions): {
365
356
  cause?: unknown;
357
+ stack?: string;
358
+ name: Name;
359
+ context: Record<string, unknown>;
360
+ get message(): string;
361
+ get _tag(): Name;
366
362
  };
367
- extend<Code extends string = string>(code: Code, message?: string): /*elided*/ any;
368
363
  isError(error: unknown): error is Error;
364
+ name: Name;
365
+ is(error: unknown): error is BaseError;
366
+ wrap(options?: Omit<import("./base").BaseErrorOptions, 'cause'> & {
367
+ ifTypeDiffers?: boolean;
368
+ }): (error: unknown) => {
369
+ cause?: unknown;
370
+ stack?: string;
371
+ name: Name;
372
+ context: Record<string, unknown>;
373
+ get message(): string;
374
+ get _tag(): Name;
375
+ };
376
+ extend<Name extends string = string>(name: Name, message?: string): /*elided*/ any;
369
377
  captureStackTrace(targetObject: object, constructorOpt?: Function): void;
370
378
  prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
371
379
  stackTraceLimit: number;
372
380
  };
373
- isError(error: unknown): error is Error;
374
381
  captureStackTrace(targetObject: object, constructorOpt?: Function): void;
375
382
  prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
376
383
  stackTraceLimit: number;
377
384
  };
378
- export declare class NotImplementedError extends NotImplementedError_base {
385
+ export declare class RuntimeServiceError extends RuntimeServiceError_base {
379
386
  }
380
387
  export {};
381
388
  //# sourceMappingURL=errors.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/errors.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;;;;;;;;;;;;;;;uEAakZ,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;2EAAd,cAAc;;;;;;;;;;;;;;;;;;;;;;AAXnc,qBAAa,QAAS,SAAQ,aAAoC;CAAG;;;;;;;;;;;;;;;uEAWgX,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;2EAAd,cAAc;;;;;;;;;;;;;;;;;;;;;;AATnc,qBAAa,WAAY,SAAQ,gBAA0C;CAAG;;;;;;;;;;;;;;;uEASuW,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;2EAAd,cAAc;;;;;;;;;;;;;;;;;;;;;;AAPnc,qBAAa,aAAc,SAAQ,kBAA8C;CAAG;;;;;;;;;;;;;;;uEAOiW,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;2EAAd,cAAc;;;;;;;;;;;;;;;;;;;;;;AALnc,qBAAa,YAAa,SAAQ,iBAAsC;CAAG;;;;;;;;;;;;;;;uEAK0W,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;2EAAd,cAAc;;;;;;;;;;;;;;;;;;;;;;AAHnc,qBAAa,YAAa,SAAQ,iBAAsC;CAAG;;;;;;;;;;;;;;;uEAG0W,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;2EAAd,cAAc;;;;;;;;;;;;;;;;;;;;;;AADnc,qBAAa,mBAAoB,SAAQ,wBAAsD;CAAG"}
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/errors.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEnC,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"}