deno_core::error
pub fn custom_error( class: &'static str, message: impl Into<Cow<'static, str>>) -> AnyError
Creates a new error with a caller-specified error class name and message.