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

Function addError

packages/effect/src/unstable/eventlog/EventGroup.ts:165–174  ·  view source on GitHub ↗
(
      this: EventGroup<Events>,
      error: Error
    )

Source from the content-addressed store, hash-verified

163 })
164 },
165 addError<Error extends Schema.Top>(
166 this: EventGroup<Events>,
167 error: Error
168 ): EventGroup<Event.AddError<Events, Error>> {
169 const events = Record.map<string, Events, Event.AddError<Events, Error>>(
170 this.events,
171 (event) => Event.addError(event, error)
172 )
173 return makeProto({ events })
174 },
175 pipe() {
176 return pipeArguments(this, arguments)
177 }

Callers

nothing calls this directly

Calls 3

addErrorMethod · 0.80
makeProtoFunction · 0.70
mapMethod · 0.45

Tested by

no test coverage detected