pub fn with_cause(m: impl Into<String>, cause: impl Into<DynError>) -> Error {
        Error::General {
            ctx: m.into(),
            causes: vec![cause.into()],
            hints: Vec::new(),
        }
    }
/// Create a new error with the specified message and cause
Create a new error with the specified message and cause
Create a new error with the specified message and cause
pub fn with_cause(m: impl Into<String>, cause: impl Into<DynError>) -> Error {
        Error::General {
            ctx: m.into(),
            causes: vec![cause.into()],
            hints: Vec::new(),
        }
    }
pub fn with_cause ( m : impl Into < String > , cause : impl Into < DynError > ) -> Error { Error :: General { ctx : m . into ( ) , causes : vec ! [ cause into ( ) ] , hints : Vec :: new ( ) , } }
Create a new error with the specified message and cause
Create a new error with the specified message and cause
m
impl Into<String>
cause
impl Into<DynError>
m
impl Into<String>
cause
impl Into<DynError>