diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2024-03-05 16:07:47 +0100 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2024-03-05 16:07:47 +0100 |
commit | 8e5d8a8aaa7bde2357ca70542a88f744005d58ba (patch) | |
tree | 6c6276a296eb5e7b8ec83c7e361247276abc9c61 /src/dav/error.rs | |
parent | b7a990ecdb0346e12cfeb0de34565f51af61ec80 (diff) | |
download | aerogramme-8e5d8a8aaa7bde2357ca70542a88f744005d58ba.tar.gz aerogramme-8e5d8a8aaa7bde2357ca70542a88f744005d58ba.zip |
Refactor encoder+decoder WIP (compile)
Diffstat (limited to 'src/dav/error.rs')
-rw-r--r-- | src/dav/error.rs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/dav/error.rs b/src/dav/error.rs new file mode 100644 index 0000000..1db2895 --- /dev/null +++ b/src/dav/error.rs @@ -0,0 +1,20 @@ +use quick_xml::events::attributes::AttrError; + +#[derive(Debug)] +pub enum ParsingError { + NamespacePrefixAlreadyUsed, + WrongToken, + TagNotFound, + QuickXml(quick_xml::Error), + Eof +} +impl From<AttrError> for ParsingError { + fn from(value: AttrError) -> Self { + Self::QuickXml(value.into()) + } +} +impl From<quick_xml::Error> for ParsingError { + fn from(value: quick_xml::Error) -> Self { + Self::QuickXml(value) + } +} |