97b01db23e
* cleaned up MixProcessingError
* Added Error impl to (hopefully) all error enums in the codebase
* Replaced all occurences of error("{0}") with error(transparent)
* Changelog entry
17 lines
402 B
Rust
17 lines
402 B
Rust
// Copyright 2022 - Nym Technologies SA <contact@nymtech.net>
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
use thiserror::Error;
|
|
|
|
#[derive(Error, Debug)]
|
|
pub enum Errors {
|
|
#[error("account id does not match")]
|
|
AccountIdError,
|
|
|
|
#[error("signature error - {0}")]
|
|
SignatureError(#[from] k256::ecdsa::signature::Error),
|
|
|
|
#[error(transparent)]
|
|
CosmrsError(#[from] cosmrs::ErrorReport),
|
|
}
|