1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
use anyhow::Error; pub struct CapturedError { pub inner: Error, pub exception_id: Option<String>, } impl From<Error> for CapturedError { fn from(inner: Error) -> Self { Self { inner, exception_id: None, } } }