29091aab8e
* Renaming all instances of nymd to nyxd * Might as well get the changelogs too * Making it clearer that an ApiClient is a NymApiClient * Lining up config templates with struct keys on gateway * Changed the last references to validator_urls to nyxd_urls * Fixed up a few type errors after refactoring * Changed the changelog * Fixed typo in changelog * Further instances of renaming 'nymd' + introducing additional clap aliases * updated environmental variables and allowed usage of deprecated variants * missing occurences of coconut-locked environmental variables Co-authored-by: Jędrzej Stuczyński <jedrzej.stuczynski@gmail.com>
25 lines
711 B
Rust
25 lines
711 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("There was an issue with the validator api request - {source}")]
|
|
NymAPIError {
|
|
#[from]
|
|
source: nym_api::error::NymAPIError,
|
|
},
|
|
|
|
#[error("One of the provided URLs was malformed - {0}")]
|
|
MalformedUrlProvided(#[from] url::ParseError),
|
|
|
|
#[cfg(feature = "nyxd-client")]
|
|
#[error("There was an issue with the Nyxd client - {0}")]
|
|
NyxdError(#[from] crate::nyxd::error::NyxdError),
|
|
|
|
#[error("No validator API url has been provided")]
|
|
NoAPIUrlAvailable,
|
|
}
|