Skip to main content

detect_error_code_spans

Function detect_error_code_spans 

Source
pub fn detect_error_code_spans(message: &str) -> Vec<ErrorCodeSpan>
Expand description

Scan a message string for recognized error codes and return their spans. Only returns spans for codes that exist in the error database. Short-circuits if the message contains no “0x” or “0X” prefix (common case).