diff options
Diffstat (limited to 'src/error.rs')
-rw-r--r-- | src/error.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/error.rs b/src/error.rs index 69993ed..eda527e 100644 --- a/src/error.rs +++ b/src/error.rs @@ -1,6 +1,6 @@ use std::{num::ParseIntError, str::Utf8Error}; -use crate::element::{Name, NamespaceDeclaration}; +use crate::element::{Content, Name, NamespaceDeclaration}; #[derive(Debug)] pub enum Error { @@ -17,6 +17,12 @@ pub enum Error { NotInElement(String), ExtraData(String), UndeclaredNamespace(String), + IncorrectName(Name), + UnexpectedAttribute(Name), + DeserializeError(String), + UnexpectedNumberOfContents(usize), + UnexpectedContent(Content), + UnexpectedElement(Name), } impl From<std::io::Error> for Error { |