1use thiserror::Error;
2
3#[derive(Debug, Error)]
5pub enum Error {
6 #[error("path utf8 error")]
7 PathUtf8Error,
8
9 #[error("No tendermint at this binary")]
10 NoTendermint,
11
12 #[error("No tendermint process stop")]
13 NoTendermintStart,
14
15 #[error(transparent)]
16 StdIoError(#[from] std::io::Error),
17
18 #[error(transparent)]
19 Utf8Error(#[from] std::string::FromUtf8Error),
20
21 #[error(transparent)]
22 TomlSerError(#[from] toml::ser::Error),
23
24 #[error(transparent)]
25 JsonError(#[from] serde_json::Error),
26}
27
28pub type Result<T> = std::result::Result<T, Error>;