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

Function httpClientError

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

Source from the content-addressed store, hash-verified

1136 const isNotification = (request: RequestEncoded) =>
1137 request.discard === true && serialization.supportsControlMessages === false
1138 const httpClientError = (cause: any) =>
1139 new RpcClientError({
1140 reason: HttpClientErrorSchema.fromHttpClientError(cause)
1141 })
1142 const protocolDefect = (message: string, cause: unknown) =>
1143 new RpcClientError({
1144 reason: new RpcClientDefect({ message, cause })

Callers 1

makeHttpExchangeFunction · 0.85

Calls 1

fromHttpClientErrorMethod · 0.45

Tested by

no test coverage detected