async_mpd/client/
error.rs1use std::io;
2use std::num::ParseIntError;
3
4#[derive(thiserror::Error, Debug)]
6pub enum Error {
7 #[error("Invalid command or arguments")]
9 CommandError { msg: String },
10
11 #[error("The server closed the connection")]
13 Disconnected,
14
15 #[error(transparent)]
17 IOError(#[from] io::Error),
18
19 #[error("Server error")]
21 ServerError { msg: String },
22
23 #[error("invalid value error")]
25 ValueError { msg: String },
26
27 #[error(transparent)]
29 ParseInteError(#[from] ParseIntError),
30}