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