516561dcf9
* separated signing and nyxd-client features * updated cosmrs to the most recent version * using tendermint_rpc directly for the Client trait * fixed rest of the codebase * removed nyxd-client feature * export more types * clippy that seems to have been skipped in makefile
24 lines
628 B
Rust
24 lines
628 B
Rust
// Copyright 2021 - Nym Technologies SA <contact@nymtech.net>
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
use crate::nym_api;
|
|
use thiserror::Error;
|
|
|
|
#[derive(Error, Debug)]
|
|
pub enum ValidatorClientError {
|
|
#[error("nym api request failed - {source}")]
|
|
NymAPIError {
|
|
#[from]
|
|
source: nym_api::error::NymAPIError,
|
|
},
|
|
|
|
#[error("One of the provided URLs was malformed - {0}")]
|
|
MalformedUrlProvided(#[from] url::ParseError),
|
|
|
|
#[error("nyxd request failed - {0}")]
|
|
NyxdError(#[from] crate::nyxd::error::NyxdError),
|
|
|
|
#[error("No validator API url has been provided")]
|
|
NoAPIUrlAvailable,
|
|
}
|