@constructive-io/errors 0.11.2 → 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/esm/generated/registry.generated.d.ts +3 -3
- package/esm/generated/registry.generated.js +493 -29
- package/esm/registry.d.ts +4 -0
- package/esm/registry.js +7 -0
- package/generated/registry.generated.d.ts +3 -3
- package/generated/registry.generated.js +493 -29
- package/package.json +2 -2
- package/registry.d.ts +4 -0
- package/registry.js +7 -0
package/esm/registry.d.ts
CHANGED
|
@@ -72,6 +72,10 @@ export declare const registry: {
|
|
|
72
72
|
bytes?: number;
|
|
73
73
|
limit?: number;
|
|
74
74
|
}>;
|
|
75
|
+
readonly CONCURRENCY_LIMIT_REACHED: import("./define").DefinedError<{
|
|
76
|
+
limit?: number;
|
|
77
|
+
waitedMs?: number;
|
|
78
|
+
}>;
|
|
75
79
|
readonly INTROSPECTION_DISABLED: import("./define").DefinedError<import("./types").EmptyContext>;
|
|
76
80
|
readonly NETWORK_ERROR: import("./define").DefinedError<import("./types").EmptyContext>;
|
|
77
81
|
readonly TIMEOUT_ERROR: import("./define").DefinedError<import("./types").EmptyContext>;
|
package/esm/registry.js
CHANGED
|
@@ -315,6 +315,13 @@ export const registry = {
|
|
|
315
315
|
message: 'The request body is too large.',
|
|
316
316
|
positional: ['bytes', 'limit']
|
|
317
317
|
}),
|
|
318
|
+
CONCURRENCY_LIMIT_REACHED: defineError({
|
|
319
|
+
code: 'CONCURRENCY_LIMIT_REACHED',
|
|
320
|
+
class: 'public',
|
|
321
|
+
http: 429,
|
|
322
|
+
message: 'Too many requests are in flight for this API. Please retry in a moment.',
|
|
323
|
+
positional: ['limit', 'waitedMs']
|
|
324
|
+
}),
|
|
318
325
|
INTROSPECTION_DISABLED: defineError({
|
|
319
326
|
code: 'INTROSPECTION_DISABLED',
|
|
320
327
|
class: 'public',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* GENERATED FILE — DO NOT EDIT BY HAND.
|
|
3
3
|
*
|
|
4
|
-
* Source of truth: the constructive-db error audit (
|
|
4
|
+
* Source of truth: the constructive-db error audit (778 distinct codes
|
|
5
5
|
* raised via EXCEPTION/THROW across deploy sources + generated output).
|
|
6
6
|
* Regenerate with `python3 scripts/generate-registry.py` (see README.md).
|
|
7
7
|
*
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* codes carry their raw message (with %-args rendered as {{argN}}). Curated
|
|
10
10
|
* entries in `registry.ts` override anything here (typed context + refined copy).
|
|
11
11
|
*
|
|
12
|
-
* Counts:
|
|
12
|
+
* Counts: 778 total, 572 public, 206 internal.
|
|
13
13
|
*/
|
|
14
14
|
import { type DefinedError } from '../define';
|
|
15
15
|
import type { ErrorContext } from '../types';
|
|
@@ -24,4 +24,4 @@ export declare const generatedRegistry: Record<string, DefinedError<ErrorContext
|
|
|
24
24
|
/** Audit metadata for each generated code. */
|
|
25
25
|
export declare const GENERATED_CODE_META: Record<string, GeneratedCodeMeta>;
|
|
26
26
|
/** Total number of codes collected from constructive-db. */
|
|
27
|
-
export declare const GENERATED_CODE_COUNT =
|
|
27
|
+
export declare const GENERATED_CODE_COUNT = 778;
|