9063a86d26
* client: log and handle error when cant load reply key storage * clippy
26 lines
1019 B
Rust
26 lines
1019 B
Rust
use client_core::{client::reply_key_storage::ReplyKeyStorageError, error::ClientCoreError};
|
|
use crypto::asymmetric::identity::Ed25519RecoveryError;
|
|
use gateway_client::error::GatewayClientError;
|
|
use validator_client::ValidatorClientError;
|
|
|
|
#[derive(thiserror::Error, Debug)]
|
|
pub enum ClientError {
|
|
#[error("I/O error: {0}")]
|
|
IoError(#[from] std::io::Error),
|
|
#[error("Gateway client error: {0}")]
|
|
GatewayClientError(#[from] GatewayClientError),
|
|
#[error("Ed25519 error: {0}")]
|
|
Ed25519RecoveryError(#[from] Ed25519RecoveryError),
|
|
#[error("Validator client error: {0}")]
|
|
ValidatorClientError(#[from] ValidatorClientError),
|
|
#[error("client-core error: {0}")]
|
|
ClientCoreError(#[from] ClientCoreError),
|
|
#[error("Reply key storage error: {0}")]
|
|
ReplyKeyStorageError(#[from] ReplyKeyStorageError),
|
|
|
|
#[error("Failed to load config for: {0}")]
|
|
FailedToLoadConfig(String),
|
|
#[error("Failed local version check, client and config mismatch")]
|
|
FailedLocalVersionCheck,
|
|
}
|