Expand description
Unified error handling for Shape
This module provides a comprehensive error type that covers all error cases in the Shape language, from parsing to execution.
Re-exports§
pub use parse_error::ErrorSeverity;pub use parse_error::ExpectedToken;pub use parse_error::Highlight;pub use parse_error::HighlightStyle;pub use parse_error::IdentifierContext;pub use parse_error::MissingComponentKind;pub use parse_error::NumberError;pub use parse_error::ParseErrorKind;pub use parse_error::RelatedInfo;pub use parse_error::SourceContext;pub use parse_error::SourceLine;pub use parse_error::StringDelimiter;pub use parse_error::StructuredParseError;pub use parse_error::Suggestion;pub use parse_error::SuggestionConfidence;pub use parse_error::TextEdit;pub use parse_error::TokenCategory;pub use parse_error::TokenInfo;pub use parse_error::TokenKind;pub use renderer::CliErrorRenderer;pub use renderer::CliRendererConfig;pub use renderer::ErrorRenderer;pub use types::ErrorCode;pub use types::ErrorNote;pub use types::ShapeError;pub use types::SourceLocation;pub use context::ErrorContext;pub use context::Result;pub use context::ResultExt;pub use context::span_to_location;
Modules§
- context
- Error context and helper utilities
- conversions
- Type conversions for ShapeError
- formatting
- Error formatting and display utilities
- impls
- Trait implementations for error types
- macros
- Error handling macros for reducing boilerplate in function implementations
- parse_
error - Structured parse error types for Shape
- pest_
converter - Pest error to structured error conversion
- renderer
- Error rendering for different output targets
- suggestions
- Error suggestion and hint generation
- types
- Core error types and enums for Shape