slack_hooked/
error.rs

1error_chain! {
2    types {
3        Error, ErrorKind, ResultExt, Result;
4    }
5
6    foreign_links {
7        Utf8(::std::str::Utf8Error) #[doc = "utf8 error, slack responses should be valid utf8"];
8        Serialize(::serde_json::error::Error) #[doc = "`serde_json::error::Error`"];
9        FromHex(::hex::FromHexError) #[doc = "`rustc_serialize::hex::FromHexError`"];
10        Reqwest(::reqwest::Error) #[doc = "`reqwest::Error`"];
11        Url(::url::ParseError) #[doc = "`url::ParseError`"];
12        Io(::std::io::Error) #[doc = "`std::io::Error`"];
13    }
14
15    errors {
16        /// slack service error
17        Slack(err: String) {
18            description("slack service error")
19            display("slack service error: {}", err)
20        }
21        /// `HexColor` parsing error
22        HexColor(err: String) {
23            description("hex color parsing error")
24            display("hex color parsing error: {}", err)
25        }
26    }
27}