MCPcopy Create free account
hub / github.com/Effect-TS/effect / ClientError

Function ClientError

packages/ai/openai/src/Generated.ts:22474–22484  ·  view source on GitHub ↗
(
  tag: Tag,
  cause: E,
  response: HttpClientResponse.HttpClientResponse
)

Source from the content-addressed store, hash-verified

22472}> {}
22473
22474export const ClientError = <Tag extends string, E>(
22475 tag: Tag,
22476 cause: E,
22477 response: HttpClientResponse.HttpClientResponse
22478): ClientError<Tag, E> =>
22479 new ClientErrorImpl({
22480 _tag: tag,
22481 cause,
22482 response,
22483 request: response.request
22484 }) as any

Callers 1

decodeErrorFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected