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

Method setError

packages/effect/src/unstable/rpc/Rpc.ts:108–108  ·  view source on GitHub ↗

* Set the schema for the error response of the rpc.

(schema: E)

Source from the content-addressed store, hash-verified

106 * Set the schema for the error response of the rpc.
107 */
108 setError<E extends Schema.Top>(schema: E): Rpc<
109 Tag,
110 Payload,
111 Success,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected