Skip to main content

classify_error

Function classify_error 

Source
pub fn classify_error(error: &Error) -> ToolErrorType
Expand description

Classify an anyhow::Error into a ToolErrorType.

This is the registry-level error classifier used by the execution facade for retry semantics. The crate-level equivalent is unified_error::classify_error which produces UnifiedErrorKind. Both delegate to the same underlying vtcode_commons::classify_anyhow_error and convert to their respective types.