diff options
Diffstat (limited to 'src/error.rs')
-rw-r--r-- | src/error.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/error.rs b/src/error.rs index c84c7d0..2d96666 100644 --- a/src/error.rs +++ b/src/error.rs @@ -1,6 +1,6 @@ use std::{num::ParseIntError, str::Utf8Error}; -use crate::element::{Name, Namespace}; +use crate::element::{Name, NamespaceDeclaration}; #[derive(Debug)] pub enum Error { @@ -10,11 +10,12 @@ pub enum Error { EntityProcessError(String), // TODO: better choice for failures than string InvalidCharRef(String), - DuplicateNameSpace(Namespace), + DuplicateNameSpaceDeclaration(NamespaceDeclaration), DuplicateAttribute(String), UnqualifiedNamespace(String), MismatchedEndTag(String, String), NotInElement(String), + ExtraData(String), } impl From<std::io::Error> for Error { |