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