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

Function httpClientError

packages/effect/src/unstable/rpc/RpcClient.ts:884–887  ·  view source on GitHub ↗
(cause: any)

Source from the content-addressed store, hash-verified

882 const serialization = yield* RpcSerialization.RpcSerialization
883 const isFramed = serialization.includesFraming
884 const httpClientError = (cause: any) =>
885 new RpcClientError({
886 reason: HttpClientErrorSchema.fromHttpClientError(cause)
887 })
888 const protocolDefect = (message: string, cause: unknown) =>
889 new RpcClientError({
890 reason: new RpcClientDefect({ message, cause })

Callers 1

makeProtocolHttpFunction · 0.85

Calls 1

fromHttpClientErrorMethod · 0.80

Tested by

no test coverage detected