@rexezuge/errors 1.15.0 → 1.17.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/README.md +2 -0
- package/dist/ServiceError.d.ts +10 -1
- package/dist/ServiceError.d.ts.map +1 -1
- package/dist/ServiceError.js +1 -1
- package/dist/ServiceError.js.map +3 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -49,6 +49,8 @@ One class per row of `CATALOG`, so a status can never disagree with its code or
|
|
|
49
49
|
| `ServiceUnavailableError` | 503 | yes |
|
|
50
50
|
| `DatabaseError` | 500 | no |
|
|
51
51
|
|
|
52
|
+
**Two 500 wire types, both published.** `InternalServerError` is the catalog class (a 500 someone threw on purpose). `InternalError` (`INTERNAL_ERROR_TYPE`) is what `ServiceError.from` yields for a throw nobody classified. Consumers' suites pin each value, so neither is renamed; a client treats both as a 500 (`@rexezuge/web` decodes either to `InternalServerError`, keeping the server's `type`).
|
|
53
|
+
|
|
52
54
|
`HttpServiceError` is the generic carrier when only a catalog entry is needed. `DatabaseError` carries the D1 classifier's verdict in its `retryable` flag. Its status is **500**, inherited from the `InternalServerError` catalog entry rather than restated — the whole point of the catalog is that status, code and default message cannot drift apart, so a row that re-declared its own status would be the one entry that could disagree with the table.
|
|
53
55
|
|
|
54
56
|
## 3. Outcome errors
|
package/dist/ServiceError.d.ts
CHANGED
|
@@ -17,6 +17,15 @@ interface ErrorHttpPayload {
|
|
|
17
17
|
status: number;
|
|
18
18
|
body: ErrorResponse;
|
|
19
19
|
}
|
|
20
|
+
/**
|
|
21
|
+
* The wire `Type` of a 500 nobody classified (`ServiceError.from`: a stray `TypeError`, a string throw).
|
|
22
|
+
*
|
|
23
|
+
* It is deliberately **not** `InternalServerError`, the catalog's name for a 500 someone threw on purpose.
|
|
24
|
+
* Both values are published: consumers' suites pin `InternalError` for untyped throws and
|
|
25
|
+
* `InternalServerError` for the catalog class, so renaming either would break a wire contract. Clients
|
|
26
|
+
* (`@rexezuge/web`) treat both as the 500 class.
|
|
27
|
+
*/
|
|
28
|
+
declare const INTERNAL_ERROR_TYPE = "InternalError";
|
|
20
29
|
/**
|
|
21
30
|
* Root of the error taxonomy.
|
|
22
31
|
*
|
|
@@ -72,6 +81,6 @@ declare abstract class ServiceError extends Error {
|
|
|
72
81
|
declare class InternalServiceError extends ServiceError {
|
|
73
82
|
constructor(message: string, options?: ServiceErrorOptions);
|
|
74
83
|
}
|
|
75
|
-
export { ServiceError, InternalServiceError };
|
|
84
|
+
export { ServiceError, InternalServiceError, INTERNAL_ERROR_TYPE };
|
|
76
85
|
export type { ServiceErrorOptions, ErrorHttpPayload };
|
|
77
86
|
//# sourceMappingURL=ServiceError.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ServiceError.d.ts","sourceRoot":"","sources":["../src/ServiceError.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAExD,UAAU,mBAAmB;IAC3B;;MAEE;IACF,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;MAEE;IACF,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;MAEE;IACF,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,UAAU,gBAAgB;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,aAAa,CAAC;CACrB;
|
|
1
|
+
{"version":3,"file":"ServiceError.d.ts","sourceRoot":"","sources":["../src/ServiceError.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAExD,UAAU,mBAAmB;IAC3B;;MAEE;IACF,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;MAEE;IACF,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;MAEE;IACF,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,UAAU,gBAAgB;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,aAAa,CAAC;CACrB;AAED;;;;;;;GAOG;AACH,QAAA,MAAM,mBAAmB,kBAAkB,CAAC;AAI5C;;;;;;;;;;;GAWG;AACH,uBAAe,YAAa,SAAQ,KAAK;IACvC;;MAEE;IACK,MAAM,EAAE,MAAM,CAAC;IAEtB;;MAEE;IACK,IAAI,EAAE,MAAM,CAAC;IAEpB;;MAEE;IACK,SAAS,EAAE,OAAO,CAAC;IAE1B;;MAEE;IACK,MAAM,EAAE,OAAO,CAAC;gBAEX,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,mBAAmB;IAexF;;;;;;OAMG;IACI,eAAe,IAAI,gBAAgB;IAa1C;;;;;;;OAOG;WACW,IAAI,CAAC,KAAK,EAAE,OAAO,GAAG,YAAY;CASjD;AAED;;;GAGG;AACH,cAAM,oBAAqB,SAAQ,YAAY;gBACjC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,mBAAmB;CAG3D;AAED,OAAO,EAAE,YAAY,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,CAAC;AACnE,YAAY,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,CAAC"}
|
package/dist/ServiceError.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var o=Object.defineProperty;var r=(c,e)=>o(c,"name",{value:e,configurable:!0});const u="InternalError",E="The server encountered an internal error and was unable to complete your request.";class t extends Error{static{r(this,"ServiceError")}status;type;retryable;expose;constructor(e,n,i,s){super(i),this.name=new.target.name,this.status=e,this.type=n,this.retryable=s?.retryable??!1,this.expose=s?.expose??e<500,s?.cause!==void 0&&(this.cause=s.cause)}toErrorResponse(){const e=this.expose?this.message:E;return{status:this.status,body:{Exception:{Type:this.type,Message:e}}}}static from(e){return e instanceof t?e:e instanceof Error?new a(e.message,{cause:e}):new a(String(e),{cause:e})}}class a extends t{static{r(this,"InternalServiceError")}constructor(e,n){super(500,u,e,n)}}export{u as INTERNAL_ERROR_TYPE,a as InternalServiceError,t as ServiceError};
|
package/dist/ServiceError.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/ServiceError.ts"],
|
|
4
|
-
"sourcesContent": ["import type { ErrorResponse } from './ErrorResponse.ts';\n\ninterface ServiceErrorOptions {\n /**\n Marks a transient failure: a caller retrying is meaningful.\n */\n retryable?: boolean;\n /**\n Whether the raw message may reach a client. Defaults to `status < 500`.\n */\n expose?: boolean;\n /**\n Underlying cause, preserved for operator-facing logs.\n */\n cause?: unknown;\n}\n\ninterface ErrorHttpPayload {\n status: number;\n body: ErrorResponse;\n}\n\nconst INTERNAL_SERVER_MESSAGE = 'The server encountered an internal error and was unable to complete your request.';\n\n/**\n * Root of the error taxonomy.\n *\n * Every boundary in the family (route handlers, middleware, background tasks)\n * branches on `instanceof ServiceError`, so every concrete error must genuinely\n * extend it — an `implements` leaves the prototype chain broken and silently\n * masks typed errors as generic 500s.\n *\n * Status/type/retryable/expose are public fields, not methods: the values are\n * fixed at construction, and callers in all nine repos read them far more often\n * than they were ever written.\n */\nabstract class ServiceError extends Error {\n /**\n The HTTP status. Defaults from the catalog; a subclass may refine it.\n */\n public status: number;\n\n /**\n Overridable by subclasses whose identity differs from the HTTP class name.\n */\n public type: string;\n\n /**\n False by default: retrying is the exception, not the rule.\n */\n public retryable: boolean;\n\n /**\n Whether the raw message may reach a client. Defaults to `status < 500`.\n */\n public expose: boolean;\n\n constructor(status: number, type: string, message: string, options?: ServiceErrorOptions) {\n super(message);\n // `new.target.name` rather than the passed type: a subclass reports itself\n // even if its author forgot to name it, so log lines and client payloads\n // never disagree about what failed.\n this.name = new.target.name;\n this.status = status;\n this.type = type;\n this.retryable = options?.retryable ?? false;\n this.expose = options?.expose ?? status < 500;\n if (options?.cause !== undefined) {\n this.cause = options.cause;\n }\n }\n\n /**\n * The wire form: status plus the family's `ErrorResponse` envelope.\n *\n * A non-exposing error (5xx) has its message substituted — `message` is for\n * operators, and pushing it to clients leaks internals. The substitution\n * lives here, once, rather than in nine boundary mappers.\n */\n public toErrorResponse(): ErrorHttpPayload {\n const message: string = this.expose ? this.message : INTERNAL_SERVER_MESSAGE;\n return {\n status: this.status,\n body: {\n Exception: {\n Type: this.type,\n Message: message,\n },\n },\n };\n }\n\n /**\n * Normalize an unknown catch-block value into the taxonomy.\n *\n * A `ServiceError` passes through untouched (re-wrapping would bury its\n * context); anything else becomes a non-retryable 500 carrying the original\n * message and cause. Boundary code should call this before mapping an error\n * to a response, so `error instanceof ServiceError` is guaranteed downstream.\n */\n public static from(error: unknown): ServiceError {\n if (error instanceof ServiceError) {\n return error;\n }\n if (error instanceof Error) {\n return new InternalServiceError(error.message, { cause: error });\n }\n return new InternalServiceError(String(error), { cause: error });\n }\n}\n\n/**\n * Private throwable used by `ServiceError.from` for pass-through wrapping.\n * Not exported: reach `InternalServerError` for the public 500.\n */\nclass InternalServiceError extends ServiceError {\n constructor(message: string, options?: ServiceErrorOptions) {\n super(500,
|
|
5
|
-
"mappings": "+
|
|
6
|
-
"names": ["INTERNAL_SERVER_MESSAGE", "ServiceError", "__name", "status", "type", "message", "options", "error", "InternalServiceError"]
|
|
4
|
+
"sourcesContent": ["import type { ErrorResponse } from './ErrorResponse.ts';\n\ninterface ServiceErrorOptions {\n /**\n Marks a transient failure: a caller retrying is meaningful.\n */\n retryable?: boolean;\n /**\n Whether the raw message may reach a client. Defaults to `status < 500`.\n */\n expose?: boolean;\n /**\n Underlying cause, preserved for operator-facing logs.\n */\n cause?: unknown;\n}\n\ninterface ErrorHttpPayload {\n status: number;\n body: ErrorResponse;\n}\n\n/**\n * The wire `Type` of a 500 nobody classified (`ServiceError.from`: a stray `TypeError`, a string throw).\n *\n * It is deliberately **not** `InternalServerError`, the catalog's name for a 500 someone threw on purpose.\n * Both values are published: consumers' suites pin `InternalError` for untyped throws and\n * `InternalServerError` for the catalog class, so renaming either would break a wire contract. Clients\n * (`@rexezuge/web`) treat both as the 500 class.\n */\nconst INTERNAL_ERROR_TYPE = 'InternalError';\n\nconst INTERNAL_SERVER_MESSAGE = 'The server encountered an internal error and was unable to complete your request.';\n\n/**\n * Root of the error taxonomy.\n *\n * Every boundary in the family (route handlers, middleware, background tasks)\n * branches on `instanceof ServiceError`, so every concrete error must genuinely\n * extend it — an `implements` leaves the prototype chain broken and silently\n * masks typed errors as generic 500s.\n *\n * Status/type/retryable/expose are public fields, not methods: the values are\n * fixed at construction, and callers in all nine repos read them far more often\n * than they were ever written.\n */\nabstract class ServiceError extends Error {\n /**\n The HTTP status. Defaults from the catalog; a subclass may refine it.\n */\n public status: number;\n\n /**\n Overridable by subclasses whose identity differs from the HTTP class name.\n */\n public type: string;\n\n /**\n False by default: retrying is the exception, not the rule.\n */\n public retryable: boolean;\n\n /**\n Whether the raw message may reach a client. Defaults to `status < 500`.\n */\n public expose: boolean;\n\n constructor(status: number, type: string, message: string, options?: ServiceErrorOptions) {\n super(message);\n // `new.target.name` rather than the passed type: a subclass reports itself\n // even if its author forgot to name it, so log lines and client payloads\n // never disagree about what failed.\n this.name = new.target.name;\n this.status = status;\n this.type = type;\n this.retryable = options?.retryable ?? false;\n this.expose = options?.expose ?? status < 500;\n if (options?.cause !== undefined) {\n this.cause = options.cause;\n }\n }\n\n /**\n * The wire form: status plus the family's `ErrorResponse` envelope.\n *\n * A non-exposing error (5xx) has its message substituted — `message` is for\n * operators, and pushing it to clients leaks internals. The substitution\n * lives here, once, rather than in nine boundary mappers.\n */\n public toErrorResponse(): ErrorHttpPayload {\n const message: string = this.expose ? this.message : INTERNAL_SERVER_MESSAGE;\n return {\n status: this.status,\n body: {\n Exception: {\n Type: this.type,\n Message: message,\n },\n },\n };\n }\n\n /**\n * Normalize an unknown catch-block value into the taxonomy.\n *\n * A `ServiceError` passes through untouched (re-wrapping would bury its\n * context); anything else becomes a non-retryable 500 carrying the original\n * message and cause. Boundary code should call this before mapping an error\n * to a response, so `error instanceof ServiceError` is guaranteed downstream.\n */\n public static from(error: unknown): ServiceError {\n if (error instanceof ServiceError) {\n return error;\n }\n if (error instanceof Error) {\n return new InternalServiceError(error.message, { cause: error });\n }\n return new InternalServiceError(String(error), { cause: error });\n }\n}\n\n/**\n * Private throwable used by `ServiceError.from` for pass-through wrapping.\n * Not exported: reach `InternalServerError` for the public 500.\n */\nclass InternalServiceError extends ServiceError {\n constructor(message: string, options?: ServiceErrorOptions) {\n super(500, INTERNAL_ERROR_TYPE, message, options);\n }\n}\n\nexport { ServiceError, InternalServiceError, INTERNAL_ERROR_TYPE };\nexport type { ServiceErrorOptions, ErrorHttpPayload };\n"],
|
|
5
|
+
"mappings": "+EA8BA,MAAMA,EAAsB,gBAEtBC,EAA0B,oFAchC,MAAeC,UAAqB,KAAK,CAxBzC,MAwByC,CAAAC,EAAA,qBAIhC,OAKA,KAKA,UAKA,OAEP,YAAYC,EAAgBC,EAAcC,EAAiBC,EAA6B,CACtF,MAAMD,CAAO,EAIb,KAAK,KAAO,WAAW,KACvB,KAAK,OAASF,EACd,KAAK,KAAOC,EACZ,KAAK,UAAYE,GAAS,WAAa,GACvC,KAAK,OAASA,GAAS,QAAUH,EAAS,IACtCG,GAAS,QAAU,SACrB,KAAK,MAAQA,EAAQ,MAEzB,CASO,iBAAe,CACpB,MAAMD,EAAkB,KAAK,OAAS,KAAK,QAAUL,EACrD,MAAO,CACL,OAAQ,KAAK,OACb,KAAM,CACJ,UAAW,CACT,KAAM,KAAK,KACX,QAASK,IAIjB,CAUO,OAAO,KAAKE,EAAc,CAC/B,OAAIA,aAAiBN,EACZM,EAELA,aAAiB,MACZ,IAAIC,EAAqBD,EAAM,QAAS,CAAE,MAAOA,CAAK,CAAE,EAE1D,IAAIC,EAAqB,OAAOD,CAAK,EAAG,CAAE,MAAOA,CAAK,CAAE,CACjE,EAOF,MAAMC,UAA6BP,CAAY,CAvG/C,MAuG+C,CAAAC,EAAA,6BAC7C,YAAYG,EAAiBC,EAA6B,CACxD,MAAM,IAAKP,EAAqBM,EAASC,CAAO,CAClD",
|
|
6
|
+
"names": ["INTERNAL_ERROR_TYPE", "INTERNAL_SERVER_MESSAGE", "ServiceError", "__name", "status", "type", "message", "options", "error", "InternalServiceError"]
|
|
7
7
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { CATALOG } from './CATALOG.ts';
|
|
2
2
|
export type { HttpErrorDefinition, HttpErrorType } from './CATALOG.ts';
|
|
3
|
-
export { ServiceError } from './ServiceError.ts';
|
|
3
|
+
export { INTERNAL_ERROR_TYPE, ServiceError } from './ServiceError.ts';
|
|
4
4
|
export type { ServiceErrorOptions, ErrorHttpPayload } from './ServiceError.ts';
|
|
5
5
|
export { HttpServiceError } from './HttpServiceError.ts';
|
|
6
6
|
export { BadRequestError } from './BadRequestError.ts';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,YAAY,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AACvE,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,YAAY,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AACvE,OAAO,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACtE,YAAY,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAC/E,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AACrF,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,CAAC;AAC3F,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EACL,iBAAiB,EACjB,4BAA4B,EAC5B,yBAAyB,EACzB,YAAY,EACZ,4BAA4B,EAC5B,yBAAyB,EACzB,cAAc,GACf,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{CATALOG as e}from"./CATALOG.js";import{ServiceError as a}from"./ServiceError.js";import{HttpServiceError as
|
|
1
|
+
import{CATALOG as e}from"./CATALOG.js";import{INTERNAL_ERROR_TYPE as E,ServiceError as a}from"./ServiceError.js";import{HttpServiceError as m}from"./HttpServiceError.js";import{BadRequestError as x}from"./BadRequestError.js";import{UnauthorizedError as n}from"./UnauthorizedError.js";import{ForbiddenError as l}from"./ForbiddenError.js";import{NotFoundError as R}from"./NotFoundError.js";import{MethodNotAllowedError as y}from"./MethodNotAllowedError.js";import{ConflictError as A}from"./ConflictError.js";import{PreconditionFailedError as T}from"./PreconditionFailedError.js";import{PayloadTooLargeError as S}from"./PayloadTooLargeError.js";import{SubrequestBudgetExhaustedError as s}from"./SubrequestBudgetExhaustedError.js";import{UnsupportedMediaTypeError as P}from"./UnsupportedMediaTypeError.js";import{RateLimitedError as L}from"./RateLimitedError.js";import{InternalServerError as F,DefaultInternalServerError as U}from"./InternalServerError.js";import{NotImplementedError as k}from"./NotImplementedError.js";import{BadGatewayError as w}from"./BadGatewayError.js";import{ServiceUnavailableError as D}from"./ServiceUnavailableError.js";import{DatabaseError as M}from"./DatabaseError.js";import{NonRetryableError as z,OAuth2TokenNonRetryableError as H,OAuth2TokenRetryableError as Y,OutcomeError as j,ProviderApiNonRetryableError as J,ProviderApiRetryableError as K,RetryableError as Q}from"./OutcomeError.js";export{w as BadGatewayError,x as BadRequestError,e as CATALOG,A as ConflictError,M as DatabaseError,U as DefaultInternalServerError,l as ForbiddenError,m as HttpServiceError,E as INTERNAL_ERROR_TYPE,F as InternalServerError,y as MethodNotAllowedError,z as NonRetryableError,R as NotFoundError,k as NotImplementedError,H as OAuth2TokenNonRetryableError,Y as OAuth2TokenRetryableError,j as OutcomeError,S as PayloadTooLargeError,T as PreconditionFailedError,J as ProviderApiNonRetryableError,K as ProviderApiRetryableError,L as RateLimitedError,Q as RetryableError,a as ServiceError,D as ServiceUnavailableError,s as SubrequestBudgetExhaustedError,n as UnauthorizedError,P as UnsupportedMediaTypeError};
|
package/dist/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/index.ts"],
|
|
4
|
-
"sourcesContent": ["export { CATALOG } from './CATALOG.ts';\nexport type { HttpErrorDefinition, HttpErrorType } from './CATALOG.ts';\nexport { ServiceError } from './ServiceError.ts';\nexport type { ServiceErrorOptions, ErrorHttpPayload } from './ServiceError.ts';\nexport { HttpServiceError } from './HttpServiceError.ts';\nexport { BadRequestError } from './BadRequestError.ts';\nexport { UnauthorizedError } from './UnauthorizedError.ts';\nexport { ForbiddenError } from './ForbiddenError.ts';\nexport { NotFoundError } from './NotFoundError.ts';\nexport { MethodNotAllowedError } from './MethodNotAllowedError.ts';\nexport { ConflictError } from './ConflictError.ts';\nexport { PreconditionFailedError } from './PreconditionFailedError.ts';\nexport { PayloadTooLargeError } from './PayloadTooLargeError.ts';\nexport { SubrequestBudgetExhaustedError } from './SubrequestBudgetExhaustedError.ts';\nexport { UnsupportedMediaTypeError } from './UnsupportedMediaTypeError.ts';\nexport { RateLimitedError } from './RateLimitedError.ts';\nexport { InternalServerError, DefaultInternalServerError } from './InternalServerError.ts';\nexport { NotImplementedError } from './NotImplementedError.ts';\nexport { BadGatewayError } from './BadGatewayError.ts';\nexport { ServiceUnavailableError } from './ServiceUnavailableError.ts';\nexport { DatabaseError } from './DatabaseError.ts';\nexport {\n NonRetryableError,\n OAuth2TokenNonRetryableError,\n OAuth2TokenRetryableError,\n OutcomeError,\n ProviderApiNonRetryableError,\n ProviderApiRetryableError,\n RetryableError,\n} from './OutcomeError.ts';\nexport type { ErrorResponse } from './ErrorResponse.ts';\n"],
|
|
5
|
-
"mappings": "AAAA,OAAS,WAAAA,MAAe,eAExB,OAAS,gBAAAC,MAAoB,
|
|
6
|
-
"names": ["CATALOG", "ServiceError", "HttpServiceError", "BadRequestError", "UnauthorizedError", "ForbiddenError", "NotFoundError", "MethodNotAllowedError", "ConflictError", "PreconditionFailedError", "PayloadTooLargeError", "SubrequestBudgetExhaustedError", "UnsupportedMediaTypeError", "RateLimitedError", "InternalServerError", "DefaultInternalServerError", "NotImplementedError", "BadGatewayError", "ServiceUnavailableError", "DatabaseError", "NonRetryableError", "OAuth2TokenNonRetryableError", "OAuth2TokenRetryableError", "OutcomeError", "ProviderApiNonRetryableError", "ProviderApiRetryableError", "RetryableError"]
|
|
4
|
+
"sourcesContent": ["export { CATALOG } from './CATALOG.ts';\nexport type { HttpErrorDefinition, HttpErrorType } from './CATALOG.ts';\nexport { INTERNAL_ERROR_TYPE, ServiceError } from './ServiceError.ts';\nexport type { ServiceErrorOptions, ErrorHttpPayload } from './ServiceError.ts';\nexport { HttpServiceError } from './HttpServiceError.ts';\nexport { BadRequestError } from './BadRequestError.ts';\nexport { UnauthorizedError } from './UnauthorizedError.ts';\nexport { ForbiddenError } from './ForbiddenError.ts';\nexport { NotFoundError } from './NotFoundError.ts';\nexport { MethodNotAllowedError } from './MethodNotAllowedError.ts';\nexport { ConflictError } from './ConflictError.ts';\nexport { PreconditionFailedError } from './PreconditionFailedError.ts';\nexport { PayloadTooLargeError } from './PayloadTooLargeError.ts';\nexport { SubrequestBudgetExhaustedError } from './SubrequestBudgetExhaustedError.ts';\nexport { UnsupportedMediaTypeError } from './UnsupportedMediaTypeError.ts';\nexport { RateLimitedError } from './RateLimitedError.ts';\nexport { InternalServerError, DefaultInternalServerError } from './InternalServerError.ts';\nexport { NotImplementedError } from './NotImplementedError.ts';\nexport { BadGatewayError } from './BadGatewayError.ts';\nexport { ServiceUnavailableError } from './ServiceUnavailableError.ts';\nexport { DatabaseError } from './DatabaseError.ts';\nexport {\n NonRetryableError,\n OAuth2TokenNonRetryableError,\n OAuth2TokenRetryableError,\n OutcomeError,\n ProviderApiNonRetryableError,\n ProviderApiRetryableError,\n RetryableError,\n} from './OutcomeError.ts';\nexport type { ErrorResponse } from './ErrorResponse.ts';\n"],
|
|
5
|
+
"mappings": "AAAA,OAAS,WAAAA,MAAe,eAExB,OAAS,uBAAAC,EAAqB,gBAAAC,MAAoB,oBAElD,OAAS,oBAAAC,MAAwB,wBACjC,OAAS,mBAAAC,MAAuB,uBAChC,OAAS,qBAAAC,MAAyB,yBAClC,OAAS,kBAAAC,MAAsB,sBAC/B,OAAS,iBAAAC,MAAqB,qBAC9B,OAAS,yBAAAC,MAA6B,6BACtC,OAAS,iBAAAC,MAAqB,qBAC9B,OAAS,2BAAAC,MAA+B,+BACxC,OAAS,wBAAAC,MAA4B,4BACrC,OAAS,kCAAAC,MAAsC,sCAC/C,OAAS,6BAAAC,MAAiC,iCAC1C,OAAS,oBAAAC,MAAwB,wBACjC,OAAS,uBAAAC,EAAqB,8BAAAC,MAAkC,2BAChE,OAAS,uBAAAC,MAA2B,2BACpC,OAAS,mBAAAC,MAAuB,uBAChC,OAAS,2BAAAC,MAA+B,+BACxC,OAAS,iBAAAC,MAAqB,qBAC9B,OACE,qBAAAC,EACA,gCAAAC,EACA,6BAAAC,EACA,gBAAAC,EACA,gCAAAC,EACA,6BAAAC,EACA,kBAAAC,MACK",
|
|
6
|
+
"names": ["CATALOG", "INTERNAL_ERROR_TYPE", "ServiceError", "HttpServiceError", "BadRequestError", "UnauthorizedError", "ForbiddenError", "NotFoundError", "MethodNotAllowedError", "ConflictError", "PreconditionFailedError", "PayloadTooLargeError", "SubrequestBudgetExhaustedError", "UnsupportedMediaTypeError", "RateLimitedError", "InternalServerError", "DefaultInternalServerError", "NotImplementedError", "BadGatewayError", "ServiceUnavailableError", "DatabaseError", "NonRetryableError", "OAuth2TokenNonRetryableError", "OAuth2TokenRetryableError", "OutcomeError", "ProviderApiNonRetryableError", "ProviderApiRetryableError", "RetryableError"]
|
|
7
7
|
}
|