Expand description
Error types for the HwpForge Core crate.
All validation and structural errors produced by Core live here. Error codes occupy the 2000-2999 range, extending the Foundation convention (1000-1999).
§Error Hierarchy
CoreError is the top-level error. It wraps:
ValidationError– document structure validation failuresFoundationError– propagated Foundation errorsInvalidStructure– catch-all for structural issues
§Examples
use hwpforge_core::error::{CoreError, ValidationError};
let err = CoreError::from(ValidationError::EmptyDocument);
assert!(err.to_string().contains("section"));Enums§
- Core
Error - Top-level error type for the Core crate.
- Core
Error Code - Core validation error codes (2000-2099).
- Validation
Error - Specific validation failures with precise location context.
Type Aliases§
- Core
Result - Convenience type alias for Core operations.