MCPcopy Index your code
hub / github.com/Effect-TS/effect / setError

Function setError

packages/rpc/src/Rpc.ts:551–561  ·  view source on GitHub ↗
(this: AnyWithProps, errorSchema: Schema.Schema.All)

Source from the content-addressed store, hash-verified

549 })
550 },
551 setError(this: AnyWithProps, errorSchema: Schema.Schema.All) {
552 return makeProto({
553 _tag: this._tag,
554 payloadSchema: this.payloadSchema,
555 successSchema: this.successSchema,
556 errorSchema,
557 defectSchema: this.defectSchema,
558 annotations: this.annotations,
559 middlewares: this.middlewares
560 })
561 },
562 setPayload(this: AnyWithProps, payloadSchema: Schema.Struct<any> | Schema.Struct.Fields) {
563 return makeProto({
564 _tag: this._tag,

Callers

nothing calls this directly

Calls 1

makeProtoFunction · 0.70

Tested by

no test coverage detected