Skip to main content

classify_failure

Function classify_failure 

Source
pub fn classify_failure(error_message: &str) -> FailureCategory
Expand description

Classify an error message into a failure category.

Uses the first matching rule from a priority-ordered rule set. Returns Unknown if no rule matches.

A fast byte-prefix path checks for compiler diagnostic codes (error[EXXXX]) before invoking the regex engine.