// 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,
}