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

Function ClientError

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

Source from the content-addressed store, hash-verified

6069}> {}
6070
6071export const ClientError = <Tag extends string, E>(
6072 tag: Tag,
6073 cause: E,
6074 response: HttpClientResponse.HttpClientResponse
6075): ClientError<Tag, E> =>
6076 new ClientErrorImpl({
6077 _tag: tag,
6078 cause,
6079 response,
6080 request: response.request
6081 }) as any

Callers 1

decodeErrorFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected