client-error.ts 319 B

1234567891011
  1. export type ClientErrorReason = "Transport" | "UnexpectedStatus" | "UnsupportedContentType" | "MalformedResponse"
  2. export class ClientError extends Error {
  3. override readonly name = "ClientError"
  4. constructor(
  5. readonly reason: ClientErrorReason,
  6. options?: ErrorOptions,
  7. ) {
  8. super(reason, options)
  9. }
  10. }