Skip to main content

Module error

Module error 

Source
Expand description

XML error types compatible with TinyXML2’s error codes.

This module provides XmlError, a comprehensive error enum covering all error conditions that TinyXML2 reports. Parse errors carry line numbers for diagnostic reporting.

§Compatibility with TinyXML2

Every XMLError variant from TinyXML2 has a corresponding XmlError variant. The Rust API uses Result<T, XmlError> instead of TinyXML2’s pattern of returning error codes and polling Document::Error().

Enums§

ParseErrorKind
Specifies what XML construct was being parsed when an error occurred.
XmlError
Comprehensive XML error type compatible with TinyXML2’s error codes.

Type Aliases§

Result
Result type alias using XmlError as the error type.