1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
error_chain::error_chain! { foreign_links { Io(::std::io::Error); Utf8(::std::string::FromUtf8Error); ForeignXmlRpc(xml_rpc::error::Error); } errors { TopicConnectionError(topic: String) { description("Could not connect to topic") display("Could not connect to {}", topic) } BadUri(uri: String) { description("Bad URI provided") display("Bad URI provided: {}", uri) } } }