rhq_core/errors.rs
1use std::path::PathBuf;
2
3error_chain! {
4 errors {
5 ConfigLoad(path: PathBuf) {
6 description("Configuration file is not found")
7 display("Failed to read configuration file `{}`", path.display())
8 }
9 }
10
11 foreign_links {
12 Io(::std::io::Error);
13 TomlSer(::toml::ser::Error);
14 TomlDe(::toml::de::Error);
15 Json(::serde_json::Error);
16 ShellExpand(::shellexpand::LookupError<::std::env::VarError>);
17 UrlParse(::url::ParseError);
18 }
19}