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

Method fromReason

packages/effect/src/unstable/http/Multipart.ts:234–236  ·  view source on GitHub ↗

* Creates a multipart error from a reason tag and optional cause. * * @since 4.0.0

(reason: MultipartErrorReason["_tag"], cause?: unknown)

Source from the content-addressed store, hash-verified

232 * @since 4.0.0
233 */
234 static fromReason(reason: MultipartErrorReason["_tag"], cause?: unknown): MultipartError {
235 return new MultipartError({ reason: new MultipartErrorReason({ _tag: reason, cause }) })
236 }
237
238 /**
239 * Marks this value as a multipart error for runtime guards.

Callers 4

convertErrorFunction · 0.45
constructorMethod · 0.45
defaultWriteFileFunction · 0.45
toPersistedFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected