Function deno_core::error::get_custom_error_class
source · pub fn get_custom_error_class(error: &Error) -> 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
.