1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#![allow(missing_docs)]
use std::num::{ParseFloatError, ParseIntError};
use terra_rust_api::errors::TerraRustAPIError;
use terra_rust_wallet::errors::TerraRustWalletError;
use thiserror::Error;
#[derive(Error, Debug)]
pub enum TerraRustCLIError {
#[error("Bad Implementation. Missing CLI Argument {0}")]
MissingArgument(String),
#[error("IO Error")]
IOErr(#[from] ::std::io::Error),
#[error("Number Float Error")]
NumberFloatErr(#[from] ParseFloatError),
#[error("Number Int Error")]
NumberIntErr(#[from] ParseIntError),
#[error(transparent)]
TerraRustAPIError(#[from] TerraRustAPIError),
#[error(transparent)]
TerraRustWalletError(#[from] TerraRustWalletError),
}