Function crabzilla::custom_error[][src]

pub fn custom_error(
    class: &'static str,
    message: impl Into<Cow<'static, str>>
) -> Error

Creates a new error with a caller-specified error class name and message.