1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
use std::convert::From;
error_chain! {
foreign_links {
XmlError(::quick_xml::errors::Error)
;
Utf8Error(::std::str::Utf8Error)
;
IoError(::std::io::Error)
;
}
errors {
EndOfDocument {
description("the end of the document has been reached prematurely")
display("the end of the document has been reached prematurely")
}
InvalidElementClosed {
description("The XML is invalid, an element was wrongly closed")
display("the XML is invalid, an element was wrongly closed")
}
InvalidElement {
description("The XML element is invalid")
display("the XML element is invalid")
}
}
}