Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Copyright © 2026 Stephan Kunz
//! Roxml's errors.

use thiserror::Error;

/// Things that may go wrong during reading of the XML.
#[derive(Error, Debug)]
pub enum Error {
	/// The XML source contains no root element.
	#[error("no root element found")]
	NoRoot,
	/// The XML source is malformed.
	#[error("malformed XML")]
	MalformedXml,
}