Function deno_core::error::get_custom_error_class[][src]

pub fn get_custom_error_class(error: &AnyError) -> Option<&'static str>
Expand description

If this error was crated with custom_error(), return the specified error class name. In all other cases this function returns None.