pub fn get_custom_error_class(error: &Error) -> Option<&'static str>
If this error was crated with custom_error(), return the specified error class name. In all other cases this function returns None.
custom_error()
None