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

Function setError

packages/effect/src/unstable/rpc/Rpc.ts:798–808  ·  view source on GitHub ↗
(this: AnyWithProps, errorSchema: Schema.Top)

Source from the content-addressed store, hash-verified

796 })
797 },
798 setError(this: AnyWithProps, errorSchema: Schema.Top) {
799 return makeProto({
800 _tag: this._tag,
801 payloadSchema: this.payloadSchema,
802 successSchema: this.successSchema,
803 errorSchema,
804 defectSchema: this.defectSchema,
805 annotations: this.annotations,
806 middlewares: this.middlewares
807 })
808 },
809 setPayload(this: AnyWithProps, payloadSchema: Schema.Struct<Schema.Struct.Fields> | Schema.Struct.Fields) {
810 return makeProto({
811 _tag: this._tag,

Callers

nothing calls this directly

Calls 1

makeProtoFunction · 0.70

Tested by

no test coverage detected