MCPcopy Create free account
hub / github.com/hashintel/hash / capture

Method capture

libs/error-stack/src/sink.rs:212–219  ·  view source on GitHub ↗
(&mut self, error: impl Into<Report<C>>)

Source from the content-addressed store, hash-verified

210 /// [`append`]: ReportSink::append
211 #[track_caller]
212 pub fn capture(&mut self, error: impl Into<Report<C>>) {
213 let report = error.into();
214
215 match self.report.as_mut() {
216 Some(existing) => existing.push(report),
217 None => self.report = Some(report.into()),
218 }
219 }
220
221 /// Attempts to execute a fallible operation and collect any errors.
222 ///

Callers 4

newMethod · 0.45
attemptMethod · 0.45
capture_singleFunction · 0.45
capture_multipleFunction · 0.45

Calls 2

pushMethod · 0.65
as_mutMethod · 0.45

Tested by 2

capture_singleFunction · 0.36
capture_multipleFunction · 0.36