use std;
error_chain! {
types {
Error, ErrorKind, ChainErr, Result;
}
links {
}
foreign_links {
std::io::Error, StdIO, "stdio error";
std::string::FromUtf8Error, FromUtf8Error, "from utf8 error";
std::num::ParseIntError, ParseIntError, "parse int error";
}
errors {
Error {
description("not a command")
display("not a command")
}
ClientError(e: String) {
description("client error")
display("client error: {}", e)
}
ServerError(e: String) {
description("server error")
display("server error: {}", e)
}
}
}