1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
use hex;
error_chain! {
errors {
HashLengthError {
description("attempted to create InputHash with invalid length")
display("Attempted to create InputHash with invalid length")
}
WorkLengthError {
description("attempted to create Work with invalid length")
display("Attempted to create Work with invalid length")
}
}
foreign_links {
FromHexConversionError(hex::FromHexError) #[doc = "An error occurred while converting from hex"];
FormatError(::std::fmt::Error) #[doc = "A formatting error occured"];
}
}