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

Method decodeError

packages/ui/native/src/NativeHttpClient.ts:325–337  ·  view source on GitHub ↗
(
    description: string,
    cause?: unknown
  )

Source from the content-addressed store, hash-verified

323 }
324
325 private decodeError(
326 description: string,
327 cause?: unknown
328 ): HttpClientError.HttpClientError {
329 return new HttpClientError.HttpClientError({
330 reason: new HttpClientError.DecodeError({
331 request: this.request,
332 response: this,
333 description,
334 cause
335 })
336 })
337 }
338
339 private failed(error: string): HttpClientError.HttpClientError {
340 return this.decodeError(`The response failed: ${error}`, error)

Callers 5

failedMethod · 0.95
unreadableMethod · 0.95
bytesMethod · 0.95
jsonMethod · 0.95
formDataMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected