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
36
37
error_chain!{
errors {
UnexpectedEOF {
display("Unexpected EOF")
description("Unexpected EOF")
}
UnknownCharacter(ch: char) {
display("Unknown Character, {:?}", ch)
description("Unknown Character")
}
MessageWithLocation(loc: usize, msg: &'static str) {
display("{} at {}", msg, loc)
description("Custom Error")
}
}
foreign_links {
Io(::std::io::Error) #[doc = "Wrapper around a `std::io::Error`"];
Utf8(::std::str::Utf8Error) #[doc = "An error parsing data as UTF-8"];
FloatParsing(::std::num::ParseFloatError) #[doc = "A float parsing error"];
IntParsing(::std::num::ParseIntError) #[doc = "An integer parsing error"];
}
}