1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
//! ErrorChain mod to hold all errors. error_chain!{ types { Error, ErrorKind, ResultExt, Result; } foreign_links { Fmt(::std::fmt::Error); Io(::std::io::Error); Utf8(::std::str::Utf8Error); FromUtf8(::std::string::FromUtf8Error); Reqwest(::reqwest::Error); Regex(::regex::Error); Base64(::base64::DecodeError); } }