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