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