Expand description
Error handling and diagnostics module
This module provides comprehensive error handling infrastructure including:
- Error codes for all validation errors
- Source position and range tracking
- Fuzzy string matching for “did you mean?” suggestions
- Multiple diagnostic output formatters (JSON, Human-readable, LSP)
Structs§
- Human
Formatter - Human-readable diagnostic formatter with color support
- Json
Diagnostic - JSON diagnostic format for machine parsing (CI/CD tools)
- Json
Formatter - JSON formatter implementation
- Json
Position - Json
Range - LspFormatter
- LSP (Language Server Protocol) compatible formatter
Traits§
- Diagnostic
Formatter - Trait for formatting validation errors
Functions§
- format_
errors_ json - Format multiple errors as a JSON array