Expand description
Error types for MDX processing
This module defines domain-specific error types for MDX processing operations.
All errors use thiserror for automatic std::error::Error implementation.
§Error Hierarchy
- Domain Errors: Use
MdxErrorfor parsing, transformation, and rendering errors - Service Boundary: Convert
MdxErrortoanyhow::Errorat HTTP handler boundaries
§Error Types
FrontmatterParse: YAML frontmatter parsing failuresMarkdownRender: Markdown to HTML conversion failuresTsxParse: TSX/JSX syntax parsing errorsTsxTransform: TSX to JavaScript transformation errorsSourceType: Source type detection failures- Resource limit errors:
ContentTooLarge,BatchTooLarge,ComponentCodeTooLarge,EngineCodeTooLarge
Enums§
- MdxError
- Custom error type for MDX processing