Skip to main content

Module error

Module error 

Source
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 failures
  • FoundationError – propagated Foundation errors
  • InvalidStructure – 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§

CoreError
Top-level error type for the Core crate.
CoreErrorCode
Core validation error codes (2000-2099).
ValidationError
Specific validation failures with precise location context.

Type Aliases§

CoreResult
Convenience type alias for Core operations.