Skip to main content

Module lookup

Module lookup 

Source

Structs§

ErrorCodeSpan
ErrorLookupResult
Result type shared by both exact lookup and search operations.

Functions§

detect_error_code_spans
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).
lookup_error_code
Look up an error code by its hex or decimal value. Accepts formats: “0x80070005”, “80070005”, “-2147024891”, “2147942405”
search_error_codes
Search error codes by exact hex/decimal match or by description substring. Returns up to 50 results sorted by relevance.

Type Aliases§

ErrorSearchResult
Alias for backward compatibility with IPC commands that reference ErrorSearchResult.