pub fn is_class(code: &str, class: &str) -> bool
Returns true if the given SQLSTATE code belongs to the specified class.
true