@rexezuge/errors 1.5.1 → 1.5.2

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.
Files changed (39) hide show
  1. package/dist/BadGatewayError.js +1 -1
  2. package/dist/BadGatewayError.js.map +2 -2
  3. package/dist/BadRequestError.js +1 -1
  4. package/dist/BadRequestError.js.map +2 -2
  5. package/dist/ConflictError.js +1 -1
  6. package/dist/ConflictError.js.map +2 -2
  7. package/dist/DatabaseError.js +1 -1
  8. package/dist/DatabaseError.js.map +2 -2
  9. package/dist/ForbiddenError.js +1 -1
  10. package/dist/ForbiddenError.js.map +2 -2
  11. package/dist/HttpServiceError.js +1 -1
  12. package/dist/HttpServiceError.js.map +2 -2
  13. package/dist/InternalServerError.js +1 -1
  14. package/dist/InternalServerError.js.map +2 -2
  15. package/dist/MethodNotAllowedError.js +1 -1
  16. package/dist/MethodNotAllowedError.js.map +2 -2
  17. package/dist/NotFoundError.js +1 -1
  18. package/dist/NotFoundError.js.map +2 -2
  19. package/dist/NotImplementedError.js +1 -1
  20. package/dist/NotImplementedError.js.map +2 -2
  21. package/dist/OutcomeError.js +1 -1
  22. package/dist/OutcomeError.js.map +2 -2
  23. package/dist/PayloadTooLargeError.js +1 -1
  24. package/dist/PayloadTooLargeError.js.map +2 -2
  25. package/dist/PreconditionFailedError.js +1 -1
  26. package/dist/PreconditionFailedError.js.map +2 -2
  27. package/dist/RateLimitedError.js +1 -1
  28. package/dist/RateLimitedError.js.map +2 -2
  29. package/dist/ServiceError.js +1 -1
  30. package/dist/ServiceError.js.map +2 -2
  31. package/dist/ServiceUnavailableError.js +1 -1
  32. package/dist/ServiceUnavailableError.js.map +2 -2
  33. package/dist/SubrequestBudgetExhaustedError.js +1 -1
  34. package/dist/SubrequestBudgetExhaustedError.js.map +2 -2
  35. package/dist/UnauthorizedError.js +1 -1
  36. package/dist/UnauthorizedError.js.map +2 -2
  37. package/dist/UnsupportedMediaTypeError.js +1 -1
  38. package/dist/UnsupportedMediaTypeError.js.map +2 -2
  39. package/package.json +1 -1
@@ -1 +1 @@
1
- import{HttpServiceError as t}from"./HttpServiceError.js";class e extends t{constructor(r){super("BadGateway",r)}}export{e as BadGatewayError};
1
+ var a=Object.defineProperty;var e=(t,r)=>a(t,"name",{value:r,configurable:!0});import{HttpServiceError as o}from"./HttpServiceError.js";class s extends o{static{e(this,"BadGatewayError")}constructor(r){super("BadGateway",r)}}export{s as BadGatewayError};
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../src/BadGatewayError.ts"],
4
4
  "sourcesContent": ["import { HttpServiceError } from './HttpServiceError.ts';\n\n/**\n * 502 — an upstream dependency answered invalidly. Pair with `retryable: true`\n * when the upstream is known to recover on its own.\n */\nclass BadGatewayError extends HttpServiceError<'BadGateway'> {\n constructor(message?: string) {\n super('BadGateway', message);\n }\n}\n\nexport { BadGatewayError };\n"],
5
- "mappings": "AAAA,OAAS,oBAAAA,MAAwB,wBAMjC,MAAMC,UAAwBD,CAA8B,CAC1D,YAAYE,EAAgB,CAC1B,MAAM,aAAcA,CAAO,CAC7B",
6
- "names": ["HttpServiceError", "BadGatewayError", "message"]
5
+ "mappings": "+EAAA,OAAS,oBAAAA,MAAwB,wBAMjC,MAAMC,UAAwBD,CAA8B,CAN5D,MAM4D,CAAAE,EAAA,wBAC1D,YAAYC,EAAgB,CAC1B,MAAM,aAAcA,CAAO,CAC7B",
6
+ "names": ["HttpServiceError", "BadGatewayError", "__name", "message"]
7
7
  }
@@ -1 +1 @@
1
- import{HttpServiceError as e}from"./HttpServiceError.js";class t extends e{constructor(r){super("BadRequest",r)}}export{t as BadRequestError};
1
+ var o=Object.defineProperty;var t=(e,r)=>o(e,"name",{value:r,configurable:!0});import{HttpServiceError as s}from"./HttpServiceError.js";class c extends s{static{t(this,"BadRequestError")}constructor(r){super("BadRequest",r)}}export{c as BadRequestError};
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../src/BadRequestError.ts"],
4
4
  "sourcesContent": ["import { HttpServiceError } from './HttpServiceError.ts';\n\n/**\n * 400 — malformed or missing input. Retrying without a change always fails.\n */\nclass BadRequestError extends HttpServiceError<'BadRequest'> {\n constructor(message?: string) {\n super('BadRequest', message);\n }\n}\n\nexport { BadRequestError };\n"],
5
- "mappings": "AAAA,OAAS,oBAAAA,MAAwB,wBAKjC,MAAMC,UAAwBD,CAA8B,CAC1D,YAAYE,EAAgB,CAC1B,MAAM,aAAcA,CAAO,CAC7B",
6
- "names": ["HttpServiceError", "BadRequestError", "message"]
5
+ "mappings": "+EAAA,OAAS,oBAAAA,MAAwB,wBAKjC,MAAMC,UAAwBD,CAA8B,CAL5D,MAK4D,CAAAE,EAAA,wBAC1D,YAAYC,EAAgB,CAC1B,MAAM,aAAcA,CAAO,CAC7B",
6
+ "names": ["HttpServiceError", "BadRequestError", "__name", "message"]
7
7
  }
@@ -1 +1 @@
1
- import{HttpServiceError as o}from"./HttpServiceError.js";class t extends o{constructor(r){super("Conflict",r)}}export{t as ConflictError};
1
+ var c=Object.defineProperty;var t=(o,r)=>c(o,"name",{value:r,configurable:!0});import{HttpServiceError as e}from"./HttpServiceError.js";class s extends e{static{t(this,"ConflictError")}constructor(r){super("Conflict",r)}}export{s as ConflictError};
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../src/ConflictError.ts"],
4
4
  "sourcesContent": ["import { HttpServiceError } from './HttpServiceError.ts';\n\n/**\n * 409 — well-formed but the resource state forbids it: a taken email, a\n * duplicate name, a stale precondition. Not retryable without a change.\n */\nclass ConflictError extends HttpServiceError<'Conflict'> {\n constructor(message?: string) {\n super('Conflict', message);\n }\n}\n\nexport { ConflictError };\n"],
5
- "mappings": "AAAA,OAAS,oBAAAA,MAAwB,wBAMjC,MAAMC,UAAsBD,CAA4B,CACtD,YAAYE,EAAgB,CAC1B,MAAM,WAAYA,CAAO,CAC3B",
6
- "names": ["HttpServiceError", "ConflictError", "message"]
5
+ "mappings": "+EAAA,OAAS,oBAAAA,MAAwB,wBAMjC,MAAMC,UAAsBD,CAA4B,CANxD,MAMwD,CAAAE,EAAA,sBACtD,YAAYC,EAAgB,CAC1B,MAAM,WAAYA,CAAO,CAC3B",
6
+ "names": ["HttpServiceError", "ConflictError", "__name", "message"]
7
7
  }
@@ -1 +1 @@
1
- import{InternalServerError as a}from"./InternalServerError.js";class s extends a{constructor(e,r=!1,t){super(e??"The system encountered an unexpected problem while accessing the database.",t),this.retryable=r,this.type="DatabaseError"}}export{s as DatabaseError};
1
+ var o=Object.defineProperty;var t=(r,e)=>o(r,"name",{value:e,configurable:!0});import{InternalServerError as n}from"./InternalServerError.js";class c extends n{static{t(this,"DatabaseError")}constructor(e,a=!1,s){super(e??"The system encountered an unexpected problem while accessing the database.",s),this.retryable=a,this.type="DatabaseError"}}export{c as DatabaseError};
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../src/DatabaseError.ts"],
4
4
  "sourcesContent": ["import { InternalServerError } from './InternalServerError.ts';\n\n/**\n * 500 for data-layer failures.\n *\n * Carries `retryable` because the difference between a transient D1 lock and a\n * constraint violation is invisible in the message — the caller's retry\n * decision (the DAO's) is encoded here as a flag instead of re-parsed at every\n * boundary.\n */\nclass DatabaseError extends InternalServerError {\n constructor(message?: string, retryable: boolean = false, options?: { cause?: unknown }) {\n super(message ?? 'The system encountered an unexpected problem while accessing the database.', options);\n this.retryable = retryable;\n this.type = 'DatabaseError';\n }\n}\n\nexport { DatabaseError };\n"],
5
- "mappings": "AAAA,OAAS,uBAAAA,MAA2B,2BAUpC,MAAMC,UAAsBD,CAAmB,CAC7C,YAAYE,EAAkBC,EAAqB,GAAOC,EAA6B,CACrF,MAAMF,GAAW,6EAA8EE,CAAO,EACtG,KAAK,UAAYD,EACjB,KAAK,KAAO,eACd",
6
- "names": ["InternalServerError", "DatabaseError", "message", "retryable", "options"]
5
+ "mappings": "+EAAA,OAAS,uBAAAA,MAA2B,2BAUpC,MAAMC,UAAsBD,CAAmB,CAV/C,MAU+C,CAAAE,EAAA,sBAC7C,YAAYC,EAAkBC,EAAqB,GAAOC,EAA6B,CACrF,MAAMF,GAAW,6EAA8EE,CAAO,EACtG,KAAK,UAAYD,EACjB,KAAK,KAAO,eACd",
6
+ "names": ["InternalServerError", "DatabaseError", "__name", "message", "retryable", "options"]
7
7
  }
@@ -1 +1 @@
1
- import{HttpServiceError as o}from"./HttpServiceError.js";class e extends o{constructor(r){super("Forbidden",r)}}export{e as ForbiddenError};
1
+ var t=Object.defineProperty;var e=(o,r)=>t(o,"name",{value:r,configurable:!0});import{HttpServiceError as d}from"./HttpServiceError.js";class s extends d{static{e(this,"ForbiddenError")}constructor(r){super("Forbidden",r)}}export{s as ForbiddenError};
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../src/ForbiddenError.ts"],
4
4
  "sourcesContent": ["import { HttpServiceError } from './HttpServiceError.ts';\n\n/**\n * 403 — the caller is authenticated but the action is not theirs to take.\n */\nclass ForbiddenError extends HttpServiceError<'Forbidden'> {\n constructor(message?: string) {\n super('Forbidden', message);\n }\n}\n\nexport { ForbiddenError };\n"],
5
- "mappings": "AAAA,OAAS,oBAAAA,MAAwB,wBAKjC,MAAMC,UAAuBD,CAA6B,CACxD,YAAYE,EAAgB,CAC1B,MAAM,YAAaA,CAAO,CAC5B",
6
- "names": ["HttpServiceError", "ForbiddenError", "message"]
5
+ "mappings": "+EAAA,OAAS,oBAAAA,MAAwB,wBAKjC,MAAMC,UAAuBD,CAA6B,CAL1D,MAK0D,CAAAE,EAAA,uBACxD,YAAYC,EAAgB,CAC1B,MAAM,YAAaA,CAAO,CAC5B",
6
+ "names": ["HttpServiceError", "ForbiddenError", "__name", "message"]
7
7
  }
@@ -1 +1 @@
1
- import{CATALOG as s}from"./CATALOG.js";import{ServiceError as i}from"./ServiceError.js";class c extends i{constructor(r,e,o){const t=s[r];super(t.status,r,e??t.defaultMessage,o)}}export{c as HttpServiceError};
1
+ var c=Object.defineProperty;var o=(t,r)=>c(t,"name",{value:r,configurable:!0});import{CATALOG as n}from"./CATALOG.js";import{ServiceError as a}from"./ServiceError.js";class f extends a{static{o(this,"HttpServiceError")}constructor(r,s,i){const e=n[r];super(e.status,r,s??e.defaultMessage,i)}}export{f as HttpServiceError};
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../src/HttpServiceError.ts"],
4
4
  "sourcesContent": ["import { CATALOG } from './CATALOG.ts';\nimport type { HttpErrorType } from './CATALOG.ts';\nimport { ServiceError } from './ServiceError.ts';\nimport type { ServiceErrorOptions } from './ServiceError.ts';\n\n/**\n * A `ServiceError` with a fixed HTTP status and type from the catalog.\n *\n * Concrete subclasses add nothing but a name, so they are one-liners:\n * `class NotFoundError extends HttpServiceError<'NotFound'> {}`.\n */\nabstract class HttpServiceError<TType extends HttpErrorType> extends ServiceError {\n constructor(errorType: TType, message?: string, options?: ServiceErrorOptions) {\n const definition = CATALOG[errorType];\n super(definition.status, errorType, message ?? definition.defaultMessage, options);\n }\n}\n\nexport { HttpServiceError };\n"],
5
- "mappings": "AAAA,OAAS,WAAAA,MAAe,eAExB,OAAS,gBAAAC,MAAoB,oBAS7B,MAAeC,UAAsDD,CAAY,CAC/E,YAAYE,EAAkBC,EAAkBC,EAA6B,CAC3E,MAAMC,EAAaN,EAAQG,CAAS,EACpC,MAAMG,EAAW,OAAQH,EAAWC,GAAWE,EAAW,eAAgBD,CAAO,CACnF",
6
- "names": ["CATALOG", "ServiceError", "HttpServiceError", "errorType", "message", "options", "definition"]
5
+ "mappings": "+EAAA,OAAS,WAAAA,MAAe,eAExB,OAAS,gBAAAC,MAAoB,oBAS7B,MAAeC,UAAsDD,CAAY,CAXjF,MAWiF,CAAAE,EAAA,yBAC/E,YAAYC,EAAkBC,EAAkBC,EAA6B,CAC3E,MAAMC,EAAaP,EAAQI,CAAS,EACpC,MAAMG,EAAW,OAAQH,EAAWC,GAAWE,EAAW,eAAgBD,CAAO,CACnF",
6
+ "names": ["CATALOG", "ServiceError", "HttpServiceError", "__name", "errorType", "message", "options", "definition"]
7
7
  }
@@ -1 +1 @@
1
- import{HttpServiceError as n}from"./HttpServiceError.js";class r extends n{constructor(e,t){super("InternalServerError",e,t)}}const o=new r;export{o as DefaultInternalServerError,r as InternalServerError};
1
+ var s=Object.defineProperty;var t=(e,r)=>s(e,"name",{value:r,configurable:!0});import{HttpServiceError as a}from"./HttpServiceError.js";class n extends a{static{t(this,"InternalServerError")}constructor(r,o){super("InternalServerError",r,o)}}const c=new n;export{c as DefaultInternalServerError,n as InternalServerError};
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../src/InternalServerError.ts"],
4
4
  "sourcesContent": ["import { HttpServiceError } from './HttpServiceError.ts';\n\n/**\n * 500 — the catch-all server fault.\n */\nclass InternalServerError extends HttpServiceError<'InternalServerError'> {\n constructor(message?: string, options?: { cause?: unknown }) {\n super('InternalServerError', message, options);\n }\n}\n\n/**\n * The instance returned to callers when the real cause must not be disclosed:\n * same stable type, generic message, regardless of what failed.\n */\nconst DefaultInternalServerError = new InternalServerError();\n\nexport { InternalServerError, DefaultInternalServerError };\n"],
5
- "mappings": "AAAA,OAAS,oBAAAA,MAAwB,wBAKjC,MAAMC,UAA4BD,CAAuC,CACvE,YAAYE,EAAkBC,EAA6B,CACzD,MAAM,sBAAuBD,EAASC,CAAO,CAC/C,EAOF,MAAMC,EAA6B,IAAIH",
6
- "names": ["HttpServiceError", "InternalServerError", "message", "options", "DefaultInternalServerError"]
5
+ "mappings": "+EAAA,OAAS,oBAAAA,MAAwB,wBAKjC,MAAMC,UAA4BD,CAAuC,CALzE,MAKyE,CAAAE,EAAA,4BACvE,YAAYC,EAAkBC,EAA6B,CACzD,MAAM,sBAAuBD,EAASC,CAAO,CAC/C,EAOF,MAAMC,EAA6B,IAAIJ",
6
+ "names": ["HttpServiceError", "InternalServerError", "__name", "message", "options", "DefaultInternalServerError"]
7
7
  }
@@ -1 +1 @@
1
- import{HttpServiceError as r}from"./HttpServiceError.js";class t extends r{constructor(o){super("MethodNotAllowed",o)}}export{t as MethodNotAllowedError};
1
+ var e=Object.defineProperty;var t=(r,o)=>e(r,"name",{value:o,configurable:!0});import{HttpServiceError as d}from"./HttpServiceError.js";class l extends d{static{t(this,"MethodNotAllowedError")}constructor(o){super("MethodNotAllowed",o)}}export{l as MethodNotAllowedError};
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../src/MethodNotAllowedError.ts"],
4
4
  "sourcesContent": ["import { HttpServiceError } from './HttpServiceError.ts';\n\n/**\n * 405 — the method exists but not on this path.\n */\nclass MethodNotAllowedError extends HttpServiceError<'MethodNotAllowed'> {\n constructor(message?: string) {\n super('MethodNotAllowed', message);\n }\n}\n\nexport { MethodNotAllowedError };\n"],
5
- "mappings": "AAAA,OAAS,oBAAAA,MAAwB,wBAKjC,MAAMC,UAA8BD,CAAoC,CACtE,YAAYE,EAAgB,CAC1B,MAAM,mBAAoBA,CAAO,CACnC",
6
- "names": ["HttpServiceError", "MethodNotAllowedError", "message"]
5
+ "mappings": "+EAAA,OAAS,oBAAAA,MAAwB,wBAKjC,MAAMC,UAA8BD,CAAoC,CALxE,MAKwE,CAAAE,EAAA,8BACtE,YAAYC,EAAgB,CAC1B,MAAM,mBAAoBA,CAAO,CACnC",
6
+ "names": ["HttpServiceError", "MethodNotAllowedError", "__name", "message"]
7
7
  }
@@ -1 +1 @@
1
- import{HttpServiceError as o}from"./HttpServiceError.js";class t extends o{constructor(r){super("NotFound",r)}}export{t as NotFoundError};
1
+ var e=Object.defineProperty;var t=(o,r)=>e(o,"name",{value:r,configurable:!0});import{HttpServiceError as s}from"./HttpServiceError.js";class c extends s{static{t(this,"NotFoundError")}constructor(r){super("NotFound",r)}}export{c as NotFoundError};
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../src/NotFoundError.ts"],
4
4
  "sourcesContent": ["import { HttpServiceError } from './HttpServiceError.ts';\n\n/**\n * 404 — no such resource.\n */\nclass NotFoundError extends HttpServiceError<'NotFound'> {\n constructor(message?: string) {\n super('NotFound', message);\n }\n}\n\nexport { NotFoundError };\n"],
5
- "mappings": "AAAA,OAAS,oBAAAA,MAAwB,wBAKjC,MAAMC,UAAsBD,CAA4B,CACtD,YAAYE,EAAgB,CAC1B,MAAM,WAAYA,CAAO,CAC3B",
6
- "names": ["HttpServiceError", "NotFoundError", "message"]
5
+ "mappings": "+EAAA,OAAS,oBAAAA,MAAwB,wBAKjC,MAAMC,UAAsBD,CAA4B,CALxD,MAKwD,CAAAE,EAAA,sBACtD,YAAYC,EAAgB,CAC1B,MAAM,WAAYA,CAAO,CAC3B",
6
+ "names": ["HttpServiceError", "NotFoundError", "__name", "message"]
7
7
  }
@@ -1 +1 @@
1
- import{HttpServiceError as e}from"./HttpServiceError.js";class t extends e{constructor(r){super("NotImplemented",r)}}export{t as NotImplementedError};
1
+ var o=Object.defineProperty;var t=(e,r)=>o(e,"name",{value:r,configurable:!0});import{HttpServiceError as m}from"./HttpServiceError.js";class p extends m{static{t(this,"NotImplementedError")}constructor(r){super("NotImplemented",r)}}export{p as NotImplementedError};
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../src/NotImplementedError.ts"],
4
4
  "sourcesContent": ["import { HttpServiceError } from './HttpServiceError.ts';\n\n/**\n * 501 — the functionality exists in the protocol but not on this deployment.\n */\nclass NotImplementedError extends HttpServiceError<'NotImplemented'> {\n constructor(message?: string) {\n super('NotImplemented', message);\n }\n}\n\nexport { NotImplementedError };\n"],
5
- "mappings": "AAAA,OAAS,oBAAAA,MAAwB,wBAKjC,MAAMC,UAA4BD,CAAkC,CAClE,YAAYE,EAAgB,CAC1B,MAAM,iBAAkBA,CAAO,CACjC",
6
- "names": ["HttpServiceError", "NotImplementedError", "message"]
5
+ "mappings": "+EAAA,OAAS,oBAAAA,MAAwB,wBAKjC,MAAMC,UAA4BD,CAAkC,CALpE,MAKoE,CAAAE,EAAA,4BAClE,YAAYC,EAAgB,CAC1B,MAAM,iBAAkBA,CAAO,CACjC",
6
+ "names": ["HttpServiceError", "NotImplementedError", "__name", "message"]
7
7
  }
@@ -1 +1 @@
1
- import{ServiceError as d}from"./ServiceError.js";class n extends d{constructor(o,e){super(e.retryable?502:400,new.target.name,o,e)}}class s extends n{constructor(o,e){super(o,{retryable:!0,...e!==void 0&&{expose:e<500}}),e!==void 0&&(this.status=e)}}class t extends n{constructor(o,e){super(o,{retryable:!1,...e!==void 0&&{expose:e<500}}),e!==void 0&&(this.status=e)}}class l extends s{}class a extends t{}class c extends s{}class i extends t{}export{t as NonRetryableError,i as OAuth2TokenNonRetryableError,c as OAuth2TokenRetryableError,n as OutcomeError,a as ProviderApiNonRetryableError,l as ProviderApiRetryableError,s as RetryableError};
1
+ var l=Object.defineProperty;var o=(r,n)=>l(r,"name",{value:n,configurable:!0});import{ServiceError as a}from"./ServiceError.js";class s extends a{static{o(this,"OutcomeError")}constructor(n,e){super(e.retryable?502:400,new.target.name,n,e)}}class t extends s{static{o(this,"RetryableError")}constructor(n,e){super(n,{retryable:!0,...e!==void 0&&{expose:e<500}}),e!==void 0&&(this.status=e)}}class d extends s{static{o(this,"NonRetryableError")}constructor(n,e){super(n,{retryable:!1,...e!==void 0&&{expose:e<500}}),e!==void 0&&(this.status=e)}}class c extends t{static{o(this,"ProviderApiRetryableError")}}class i extends d{static{o(this,"ProviderApiNonRetryableError")}}class u extends t{static{o(this,"OAuth2TokenRetryableError")}}class x extends d{static{o(this,"OAuth2TokenNonRetryableError")}}export{d as NonRetryableError,x as OAuth2TokenNonRetryableError,u as OAuth2TokenRetryableError,s as OutcomeError,i as ProviderApiNonRetryableError,c as ProviderApiRetryableError,t as RetryableError};
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../src/OutcomeError.ts"],
4
4
  "sourcesContent": ["import { ServiceError } from './ServiceError.ts';\nimport type { ServiceErrorOptions } from './ServiceError.ts';\n\n/**\n * An error whose retryability is decided by the thrower, not deduced.\n *\n * Durable-DAV's `D1ErrorClassifier` can classify a raw D1 message, but a\n * provider-level failure (OAuth2 grant revoked, upstream API rejecting a\n * payload) carries no such signal — only the code that made the call knows.\n * This taxonomy lets that code say so explicitly, and the status defaults\n * follow the retry flag rather than a name-lookup table that could disagree.\n */\nclass OutcomeError extends ServiceError {\n constructor(message: string, options: ServiceErrorOptions & { retryable: boolean }) {\n super(options.retryable ? 502 : 400, new.target.name, message, options);\n }\n}\n\n/**\n * Transient upstream failure: a later attempt may succeed (throttling, 5xx\n * from the provider, token refresh race). Status 502 by default.\n */\nclass RetryableError extends OutcomeError {\n constructor(message: string, status?: number) {\n super(message, { retryable: true, ...(status !== undefined && { expose: status < 500 }) });\n if (status !== undefined) {\n this.status = status;\n }\n }\n}\n\n/**\n * Permanent failure: retrying repeats the failure forever. A revoked grant\n * retried every ten minutes told the caller the request was a server fault;\n * this class exists so that never reads as retryable again. Status 400.\n */\nclass NonRetryableError extends OutcomeError {\n constructor(message: string, status?: number) {\n super(message, { retryable: false, ...(status !== undefined && { expose: status < 500 }) });\n if (status !== undefined) {\n this.status = status;\n }\n }\n}\n\nclass ProviderApiRetryableError extends RetryableError {}\nclass ProviderApiNonRetryableError extends NonRetryableError {}\nclass OAuth2TokenRetryableError extends RetryableError {}\nclass OAuth2TokenNonRetryableError extends NonRetryableError {}\n\nexport {\n NonRetryableError,\n OAuth2TokenNonRetryableError,\n OAuth2TokenRetryableError,\n OutcomeError,\n ProviderApiNonRetryableError,\n ProviderApiRetryableError,\n RetryableError,\n};\n"],
5
- "mappings": "AAAA,OAAS,gBAAAA,MAAoB,oBAY7B,MAAMC,UAAqBD,CAAY,CACrC,YAAYE,EAAiBC,EAAqD,CAChF,MAAMA,EAAQ,UAAY,IAAM,IAAK,WAAW,KAAMD,EAASC,CAAO,CACxE,EAOF,MAAMC,UAAuBH,CAAY,CACvC,YAAYC,EAAiBG,EAAe,CAC1C,MAAMH,EAAS,CAAE,UAAW,GAAM,GAAIG,IAAW,QAAa,CAAE,OAAQA,EAAS,GAAG,CAAG,CAAE,EACrFA,IAAW,SACb,KAAK,OAASA,EAElB,EAQF,MAAMC,UAA0BL,CAAY,CAC1C,YAAYC,EAAiBG,EAAe,CAC1C,MAAMH,EAAS,CAAE,UAAW,GAAO,GAAIG,IAAW,QAAa,CAAE,OAAQA,EAAS,GAAG,CAAG,CAAE,EACtFA,IAAW,SACb,KAAK,OAASA,EAElB,EAGF,MAAME,UAAkCH,CAAc,EACtD,MAAMI,UAAqCF,CAAiB,EAC5D,MAAMG,UAAkCL,CAAc,EACtD,MAAMM,UAAqCJ,CAAiB",
6
- "names": ["ServiceError", "OutcomeError", "message", "options", "RetryableError", "status", "NonRetryableError", "ProviderApiRetryableError", "ProviderApiNonRetryableError", "OAuth2TokenRetryableError", "OAuth2TokenNonRetryableError"]
5
+ "mappings": "+EAAA,OAAS,gBAAAA,MAAoB,oBAY7B,MAAMC,UAAqBD,CAAY,CAZvC,MAYuC,CAAAE,EAAA,qBACrC,YAAYC,EAAiBC,EAAqD,CAChF,MAAMA,EAAQ,UAAY,IAAM,IAAK,WAAW,KAAMD,EAASC,CAAO,CACxE,EAOF,MAAMC,UAAuBJ,CAAY,CAtBzC,MAsByC,CAAAC,EAAA,uBACvC,YAAYC,EAAiBG,EAAe,CAC1C,MAAMH,EAAS,CAAE,UAAW,GAAM,GAAIG,IAAW,QAAa,CAAE,OAAQA,EAAS,GAAG,CAAG,CAAE,EACrFA,IAAW,SACb,KAAK,OAASA,EAElB,EAQF,MAAMC,UAA0BN,CAAY,CApC5C,MAoC4C,CAAAC,EAAA,0BAC1C,YAAYC,EAAiBG,EAAe,CAC1C,MAAMH,EAAS,CAAE,UAAW,GAAO,GAAIG,IAAW,QAAa,CAAE,OAAQA,EAAS,GAAG,CAAG,CAAE,EACtFA,IAAW,SACb,KAAK,OAASA,EAElB,EAGF,MAAME,UAAkCH,CAAc,CA7CtD,MA6CsD,CAAAH,EAAA,mCACtD,MAAMO,UAAqCF,CAAiB,CA9C5D,MA8C4D,CAAAL,EAAA,sCAC5D,MAAMQ,UAAkCL,CAAc,CA/CtD,MA+CsD,CAAAH,EAAA,mCACtD,MAAMS,UAAqCJ,CAAiB,CAhD5D,MAgD4D,CAAAL,EAAA",
6
+ "names": ["ServiceError", "OutcomeError", "__name", "message", "options", "RetryableError", "status", "NonRetryableError", "ProviderApiRetryableError", "ProviderApiNonRetryableError", "OAuth2TokenRetryableError", "OAuth2TokenNonRetryableError"]
7
7
  }
@@ -1 +1 @@
1
- import{HttpServiceError as o}from"./HttpServiceError.js";class e extends o{constructor(r){super("PayloadTooLarge",r)}}export{e as PayloadTooLargeError};
1
+ var a=Object.defineProperty;var e=(o,r)=>a(o,"name",{value:r,configurable:!0});import{HttpServiceError as t}from"./HttpServiceError.js";class s extends t{static{e(this,"PayloadTooLargeError")}constructor(r){super("PayloadTooLarge",r)}}export{s as PayloadTooLargeError};
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../src/PayloadTooLargeError.ts"],
4
4
  "sourcesContent": ["import { HttpServiceError } from './HttpServiceError.ts';\n\n/**\n * 413 — the payload exceeds the server's limits (request body, file, batch).\n */\nclass PayloadTooLargeError extends HttpServiceError<'PayloadTooLarge'> {\n constructor(message?: string) {\n super('PayloadTooLarge', message);\n }\n}\n\nexport { PayloadTooLargeError };\n"],
5
- "mappings": "AAAA,OAAS,oBAAAA,MAAwB,wBAKjC,MAAMC,UAA6BD,CAAmC,CACpE,YAAYE,EAAgB,CAC1B,MAAM,kBAAmBA,CAAO,CAClC",
6
- "names": ["HttpServiceError", "PayloadTooLargeError", "message"]
5
+ "mappings": "+EAAA,OAAS,oBAAAA,MAAwB,wBAKjC,MAAMC,UAA6BD,CAAmC,CALtE,MAKsE,CAAAE,EAAA,6BACpE,YAAYC,EAAgB,CAC1B,MAAM,kBAAmBA,CAAO,CAClC",
6
+ "names": ["HttpServiceError", "PayloadTooLargeError", "__name", "message"]
7
7
  }
@@ -1 +1 @@
1
- import{HttpServiceError as o}from"./HttpServiceError.js";class e extends o{constructor(r){super("PreconditionFailed",r)}}export{e as PreconditionFailedError};
1
+ var t=Object.defineProperty;var e=(o,r)=>t(o,"name",{value:r,configurable:!0});import{HttpServiceError as i}from"./HttpServiceError.js";class c extends i{static{e(this,"PreconditionFailedError")}constructor(r){super("PreconditionFailed",r)}}export{c as PreconditionFailedError};
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../src/PreconditionFailedError.ts"],
4
4
  "sourcesContent": ["import { HttpServiceError } from './HttpServiceError.ts';\n\n/**\n * 412 — a precondition the caller supplied (e.g. `If-Match`, expected state)\n * did not hold. Retrying unmodified fails by definition.\n */\nclass PreconditionFailedError extends HttpServiceError<'PreconditionFailed'> {\n constructor(message?: string) {\n super('PreconditionFailed', message);\n }\n}\n\nexport { PreconditionFailedError };\n"],
5
- "mappings": "AAAA,OAAS,oBAAAA,MAAwB,wBAMjC,MAAMC,UAAgCD,CAAsC,CAC1E,YAAYE,EAAgB,CAC1B,MAAM,qBAAsBA,CAAO,CACrC",
6
- "names": ["HttpServiceError", "PreconditionFailedError", "message"]
5
+ "mappings": "+EAAA,OAAS,oBAAAA,MAAwB,wBAMjC,MAAMC,UAAgCD,CAAsC,CAN5E,MAM4E,CAAAE,EAAA,gCAC1E,YAAYC,EAAgB,CAC1B,MAAM,qBAAsBA,CAAO,CACrC",
6
+ "names": ["HttpServiceError", "PreconditionFailedError", "__name", "message"]
7
7
  }
@@ -1 +1 @@
1
- import{HttpServiceError as t}from"./HttpServiceError.js";class e extends t{constructor(r){super("RateLimited",r)}}export{e as RateLimitedError};
1
+ var o=Object.defineProperty;var e=(t,r)=>o(t,"name",{value:r,configurable:!0});import{HttpServiceError as i}from"./HttpServiceError.js";class s extends i{static{e(this,"RateLimitedError")}constructor(r){super("RateLimited",r)}}export{s as RateLimitedError};
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../src/RateLimitedError.ts"],
4
4
  "sourcesContent": ["import { HttpServiceError } from './HttpServiceError.ts';\n\n/**\n * 429 — the caller exceeded its rate budget. Retrying is not just futile but\n * punished; honor `retryAfter`-style backoff at the caller.\n */\nclass RateLimitedError extends HttpServiceError<'RateLimited'> {\n constructor(message?: string) {\n super('RateLimited', message);\n }\n}\n\nexport { RateLimitedError };\n"],
5
- "mappings": "AAAA,OAAS,oBAAAA,MAAwB,wBAMjC,MAAMC,UAAyBD,CAA+B,CAC5D,YAAYE,EAAgB,CAC1B,MAAM,cAAeA,CAAO,CAC9B",
6
- "names": ["HttpServiceError", "RateLimitedError", "message"]
5
+ "mappings": "+EAAA,OAAS,oBAAAA,MAAwB,wBAMjC,MAAMC,UAAyBD,CAA+B,CAN9D,MAM8D,CAAAE,EAAA,yBAC5D,YAAYC,EAAgB,CAC1B,MAAM,cAAeA,CAAO,CAC9B",
6
+ "names": ["HttpServiceError", "RateLimitedError", "__name", "message"]
7
7
  }
@@ -1 +1 @@
1
- const u="The server encountered an internal error and was unable to complete your request.";class t extends Error{status;type;retryable;expose;constructor(e,r,a,s){super(a),this.name=new.target.name,this.status=e,this.type=r,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:u;return{status:this.status,body:{Exception:{Type:this.type,Message:e}}}}static from(e){return e instanceof t?e:e instanceof Error?new n(e.message,{cause:e}):new n(String(e),{cause:e})}}class n extends t{constructor(e,r){super(500,"InternalError",e,r)}}export{n as InternalServiceError,t as ServiceError};
1
+ var i=Object.defineProperty;var n=(u,e)=>i(u,"name",{value:e,configurable:!0});const o="The server encountered an internal error and was unable to complete your request.";class t extends Error{static{n(this,"ServiceError")}status;type;retryable;expose;constructor(e,r,c,s){super(c),this.name=new.target.name,this.status=e,this.type=r,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:o;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{n(this,"InternalServiceError")}constructor(e,r){super(500,"InternalError",e,r)}}export{a as InternalServiceError,t as ServiceError};
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../src/ServiceError.ts"],
4
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, 'InternalError', message, options);\n }\n}\n\nexport { ServiceError, InternalServiceError };\nexport type { ServiceErrorOptions, ErrorHttpPayload };\n"],
5
- "mappings": "AAsBA,MAAMA,EAA0B,oFAchC,MAAeC,UAAqB,KAAK,CAIhC,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,QAAUJ,EACrD,MAAO,CACL,OAAQ,KAAK,OACb,KAAM,CACJ,UAAW,CACT,KAAM,KAAK,KACX,QAASI,IAIjB,CAUO,OAAO,KAAKE,EAAc,CAC/B,OAAIA,aAAiBL,EACZK,EAELA,aAAiB,MACZ,IAAIC,EAAqBD,EAAM,QAAS,CAAE,MAAOA,CAAK,CAAE,EAE1D,IAAIC,EAAqB,OAAOD,CAAK,EAAG,CAAE,MAAOA,CAAK,CAAE,CACjE,EAOF,MAAMC,UAA6BN,CAAY,CAC7C,YAAYG,EAAiBC,EAA6B,CACxD,MAAM,IAAK,gBAAiBD,EAASC,CAAO,CAC9C",
6
- "names": ["INTERNAL_SERVER_MESSAGE", "ServiceError", "status", "type", "message", "options", "error", "InternalServiceError"]
5
+ "mappings": "+EAsBA,MAAMA,EAA0B,oFAchC,MAAeC,UAAqB,KAAK,CAdzC,MAcyC,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,CA7F/C,MA6F+C,CAAAC,EAAA,6BAC7C,YAAYG,EAAiBC,EAA6B,CACxD,MAAM,IAAK,gBAAiBD,EAASC,CAAO,CAC9C",
6
+ "names": ["INTERNAL_SERVER_MESSAGE", "ServiceError", "__name", "status", "type", "message", "options", "error", "InternalServiceError"]
7
7
  }
@@ -1 +1 @@
1
- import{HttpServiceError as e}from"./HttpServiceError.js";class a extends e{constructor(r){super("ServiceUnavailable",r)}}export{a as ServiceUnavailableError};
1
+ var o=Object.defineProperty;var a=(e,r)=>o(e,"name",{value:r,configurable:!0});import{HttpServiceError as t}from"./HttpServiceError.js";class c extends t{static{a(this,"ServiceUnavailableError")}constructor(r){super("ServiceUnavailable",r)}}export{c as ServiceUnavailableError};
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../src/ServiceUnavailableError.ts"],
4
4
  "sourcesContent": ["import { HttpServiceError } from './HttpServiceError.ts';\n\n/**\n * 503 — unavailable now, healthy later. The natural status for retryable\n * infrastructure failures (a locked D1, an overloaded upstream).\n */\nclass ServiceUnavailableError extends HttpServiceError<'ServiceUnavailable'> {\n constructor(message?: string) {\n super('ServiceUnavailable', message);\n }\n}\n\nexport { ServiceUnavailableError };\n"],
5
- "mappings": "AAAA,OAAS,oBAAAA,MAAwB,wBAMjC,MAAMC,UAAgCD,CAAsC,CAC1E,YAAYE,EAAgB,CAC1B,MAAM,qBAAsBA,CAAO,CACrC",
6
- "names": ["HttpServiceError", "ServiceUnavailableError", "message"]
5
+ "mappings": "+EAAA,OAAS,oBAAAA,MAAwB,wBAMjC,MAAMC,UAAgCD,CAAsC,CAN5E,MAM4E,CAAAE,EAAA,gCAC1E,YAAYC,EAAgB,CAC1B,MAAM,qBAAsBA,CAAO,CACrC",
6
+ "names": ["HttpServiceError", "ServiceUnavailableError", "__name", "message"]
7
7
  }
@@ -1 +1 @@
1
- import{PayloadTooLargeError as r}from"./PayloadTooLargeError.js";class t extends r{constructor(e){super(e??"This request asks for more database work than one invocation can issue. Send fewer items at once."),this.type="SubrequestBudgetExhausted"}}export{t as SubrequestBudgetExhaustedError};
1
+ var s=Object.defineProperty;var t=(r,e)=>s(r,"name",{value:e,configurable:!0});import{PayloadTooLargeError as o}from"./PayloadTooLargeError.js";class a extends o{static{t(this,"SubrequestBudgetExhaustedError")}constructor(e){super(e??"This request asks for more database work than one invocation can issue. Send fewer items at once."),this.type="SubrequestBudgetExhausted"}}export{a as SubrequestBudgetExhaustedError};
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../src/SubrequestBudgetExhaustedError.ts"],
4
4
  "sourcesContent": ["import { PayloadTooLargeError } from './PayloadTooLargeError.ts';\n\n/**\n * 413 for invocations that asked for more work than one Worker invocation can issue.\n *\n * Converged from Edge-Sonic's `SubrequestBudgetExhaustedError`: a scan's index\n * write is resumable (the folder stays on the frontier, so a truncated batch is\n * reported rather than raised), but a play queue is all-or-nothing — half a\n * queue is a shorter queue, which is a wrong answer rather than an unfinished\n * one. Those writes refuse to start rather than starting and stopping.\n *\n * Shares `PayloadTooLarge`'s status (the request is well-formed; only its size\n * exceeds what this plan serves in one invocation) with a distinct `type`,\n * following the `DatabaseError` precedent: the catalog keeps one row per\n * status, and the specialization overrides `type` rather than adding a second\n * 413 row that would break the catalog's unique-status invariant. The remedy is\n * the same shape as `PayloadTooLargeError` — ask for less in one request.\n */\nclass SubrequestBudgetExhaustedError extends PayloadTooLargeError {\n constructor(message?: string) {\n super(message ?? 'This request asks for more database work than one invocation can issue. Send fewer items at once.');\n this.type = 'SubrequestBudgetExhausted';\n }\n}\n\nexport { SubrequestBudgetExhaustedError };\n"],
5
- "mappings": "AAAA,OAAS,wBAAAA,MAA4B,4BAkBrC,MAAMC,UAAuCD,CAAoB,CAC/D,YAAYE,EAAgB,CAC1B,MAAMA,GAAW,mGAAmG,EACpH,KAAK,KAAO,2BACd",
6
- "names": ["PayloadTooLargeError", "SubrequestBudgetExhaustedError", "message"]
5
+ "mappings": "+EAAA,OAAS,wBAAAA,MAA4B,4BAkBrC,MAAMC,UAAuCD,CAAoB,CAlBjE,MAkBiE,CAAAE,EAAA,uCAC/D,YAAYC,EAAgB,CAC1B,MAAMA,GAAW,mGAAmG,EACpH,KAAK,KAAO,2BACd",
6
+ "names": ["PayloadTooLargeError", "SubrequestBudgetExhaustedError", "__name", "message"]
7
7
  }
@@ -1 +1 @@
1
- import{HttpServiceError as o}from"./HttpServiceError.js";class t extends o{constructor(r){super("Unauthorized",r)}}export{t as UnauthorizedError};
1
+ var e=Object.defineProperty;var t=(o,r)=>e(o,"name",{value:r,configurable:!0});import{HttpServiceError as s}from"./HttpServiceError.js";class c extends s{static{t(this,"UnauthorizedError")}constructor(r){super("Unauthorized",r)}}export{c as UnauthorizedError};
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../src/UnauthorizedError.ts"],
4
4
  "sourcesContent": ["import { HttpServiceError } from './HttpServiceError.ts';\n\n/**\n * 401 — credentials missing, expired, or rejected. Distinct from `Forbidden`:\n * re-authenticating may help; `Forbidden` it will not.\n */\nclass UnauthorizedError extends HttpServiceError<'Unauthorized'> {\n constructor(message?: string) {\n super('Unauthorized', message);\n }\n}\n\nexport { UnauthorizedError };\n"],
5
- "mappings": "AAAA,OAAS,oBAAAA,MAAwB,wBAMjC,MAAMC,UAA0BD,CAAgC,CAC9D,YAAYE,EAAgB,CAC1B,MAAM,eAAgBA,CAAO,CAC/B",
6
- "names": ["HttpServiceError", "UnauthorizedError", "message"]
5
+ "mappings": "+EAAA,OAAS,oBAAAA,MAAwB,wBAMjC,MAAMC,UAA0BD,CAAgC,CANhE,MAMgE,CAAAE,EAAA,0BAC9D,YAAYC,EAAgB,CAC1B,MAAM,eAAgBA,CAAO,CAC/B",
6
+ "names": ["HttpServiceError", "UnauthorizedError", "__name", "message"]
7
7
  }
@@ -1 +1 @@
1
- import{HttpServiceError as e}from"./HttpServiceError.js";class p extends e{constructor(r){super("UnsupportedMediaType",r)}}export{p as UnsupportedMediaTypeError};
1
+ var o=Object.defineProperty;var p=(e,r)=>o(e,"name",{value:r,configurable:!0});import{HttpServiceError as t}from"./HttpServiceError.js";class s extends t{static{p(this,"UnsupportedMediaTypeError")}constructor(r){super("UnsupportedMediaType",r)}}export{s as UnsupportedMediaTypeError};
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../src/UnsupportedMediaTypeError.ts"],
4
4
  "sourcesContent": ["import { HttpServiceError } from './HttpServiceError.ts';\n\n/**\n * 415 — the body's content type is not one the endpoint can parse.\n */\nclass UnsupportedMediaTypeError extends HttpServiceError<'UnsupportedMediaType'> {\n constructor(message?: string) {\n super('UnsupportedMediaType', message);\n }\n}\n\nexport { UnsupportedMediaTypeError };\n"],
5
- "mappings": "AAAA,OAAS,oBAAAA,MAAwB,wBAKjC,MAAMC,UAAkCD,CAAwC,CAC9E,YAAYE,EAAgB,CAC1B,MAAM,uBAAwBA,CAAO,CACvC",
6
- "names": ["HttpServiceError", "UnsupportedMediaTypeError", "message"]
5
+ "mappings": "+EAAA,OAAS,oBAAAA,MAAwB,wBAKjC,MAAMC,UAAkCD,CAAwC,CALhF,MAKgF,CAAAE,EAAA,kCAC9E,YAAYC,EAAgB,CAC1B,MAAM,uBAAwBA,CAAO,CACvC",
6
+ "names": ["HttpServiceError", "UnsupportedMediaTypeError", "__name", "message"]
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rexezuge/errors",
3
- "version": "1.5.1",
3
+ "version": "1.5.2",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "repository": {