Lines Matching refs:context

157     let error = Error::new(error).context("yikes");  in into_boxed_dyn_error()
180 let e = e.context(TestError(42)); in is()
187 let e = e.context(TestError(36)).context("another str"); in is()
245 assert_backtrace(Error::new(TestError(42)).context("yikes")); in backtrace()
437 .context("yikes") in downcast()
438 .context(OutOfMemory::new(5)); in downcast()
444 .context("yikes") in downcast()
445 .context(OutOfMemory::new(5)); in downcast()
451 .context("yikes") in downcast()
452 .context(OutOfMemory::new(5)); in downcast()
457 let error = Error::new(TestError(42)).context(TestError(36)); in downcast()
466 .context(CountDrops::new(&drops)) in downcast_drops_everything()
467 .context(CountDrops::new(&drops)); in downcast_drops_everything()
477 .context(CountDrops(drops.clone())) in downcast_drops_everything()
478 .context(CountDrops(drops.clone())); in downcast_drops_everything()
495 let e = e.context(TestError(42)); in downcast_ref()
501 let e = e.context("another str"); in downcast_ref()
529 let mut e = e.context(TestError(42)); in downcast_mut()
537 let mut e = e.context("another str"); in downcast_mut()
559 let error = error.context("yikes"); in context_on_oom()
570 let result = result.context("uh oh").context(TestError(1337)); in context_on_ok_result()
576 let result: Result<u32> = Err(Error::new(TestError(42))).context("uh oh"); in context_on_err_result()
589 let result = option.context("uh oh").context(TestError(1337)); in context_on_some_option()
596 let result = option.context(TestError(42)).context("uh oh"); in context_on_none_option()
652 let error = Error::msg("whoops").context("uh oh").context("yikes"); in fmt_debug()
678 let error = Error::msg("whoops").context("uh oh"); in fmt_debug_with_single_cause()
708 .context(TestError(42)) in fmt_debug_alternate()
709 .context("yikes") in fmt_debug_alternate()
710 .context("ouch"); in fmt_debug_alternate()
779 let error = Error::msg("whoops").context("uh oh").context("yikes"); in fmt_display()
786 .context("whoops") in fmt_display_alternate()
787 .context("uh oh") in fmt_display_alternate()
788 .context("yikes"); in fmt_display_alternate()
795 .context("uh oh") in chain()
796 .context(TestError(42)); in chain()
821 let error = Error::new(error).context("ouch").context("oof"); in chain_on_error_with_source()
848 let error = Error::new(error).context("ouch").context("oof"); in root_cause()
872 .context("oof") in chain_with_leaf_sources()
873 .context("wow"); in chain_with_leaf_sources()
925 let e = Error::from(TestError(1)).context("hi"); in anyhow_preserves_downcast()
974 let e = e.context(TestError(2)); in anyhow_wasmtime_anyhow_sandwich_chain()
982 let e = e.context(TestError(3)); in anyhow_wasmtime_anyhow_sandwich_chain()
990 let e = e.context(TestError(4)); in anyhow_wasmtime_anyhow_sandwich_chain()
1009 let e = e.context(TestError(2)); in wasmtime_anyhow_wasmtime_sandwich_chain()
1017 let e = e.context(TestError(3)); in wasmtime_anyhow_wasmtime_sandwich_chain()
1025 let e = e.context(TestError(4)); in wasmtime_anyhow_wasmtime_sandwich_chain()