Use error_chain

This commit is contained in:
Dustin J. Mitchell
2018-11-11 21:09:49 -05:00
parent f9d950e621
commit 1272acb893
7 changed files with 169 additions and 73 deletions

9
src/errors.rs Normal file
View File

@@ -0,0 +1,9 @@
error_chain!{
foreign_links {
Io(::std::io::Error);
StrFromUtf8(::std::str::Utf8Error);
StringFromUtf8(::std::string::FromUtf8Error);
StringFromUtf16(::std::string::FromUtf16Error);
}
}