Move CliNonceError
into client crate
This commit is contained in:
committed by
Trent Nelson
parent
55be8d4016
commit
dda48e2d06
17
client/src/nonce_utils.rs
Normal file
17
client/src/nonce_utils.rs
Normal file
@@ -0,0 +1,17 @@
|
||||
#[derive(Debug, thiserror::Error, PartialEq)]
|
||||
pub enum Error {
|
||||
#[error("invalid account owner")]
|
||||
InvalidAccountOwner,
|
||||
#[error("invalid account data")]
|
||||
InvalidAccountData,
|
||||
#[error("unexpected account data size")]
|
||||
UnexpectedDataSize,
|
||||
#[error("query hash does not match stored hash")]
|
||||
InvalidHash,
|
||||
#[error("query authority does not match account authority")]
|
||||
InvalidAuthority,
|
||||
#[error("invalid state for requested operation")]
|
||||
InvalidStateForOperation,
|
||||
#[error("client error: {0}")]
|
||||
Client(String),
|
||||
}
|
Reference in New Issue
Block a user