Module error

Module error 

Source
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 MdxError for parsing, transformation, and rendering errors
  • Service Boundary: Convert MdxError to anyhow::Error at HTTP handler boundaries

§Error Types

  • FrontmatterParse: YAML frontmatter parsing failures
  • MarkdownRender: Markdown to HTML conversion failures
  • TsxParse: TSX/JSX syntax parsing errors
  • TsxTransform: TSX to JavaScript transformation errors
  • SourceType: Source type detection failures
  • Resource limit errors: ContentTooLarge, BatchTooLarge, ComponentCodeTooLarge, EngineCodeTooLarge

Enums§

MdxError
Custom error type for MDX processing