Skip to main content

nym_node_requests/
error.rs

1// Copyright 2023 - Nym Technologies SA <contact@nymtech.net>
2// SPDX-License-Identifier: Apache-2.0
3
4use thiserror::Error;
5
6#[derive(Debug, Error)]
7pub enum Error {
8    #[error("failed to serialize json data: {source}")]
9    JsonSerializationFailure {
10        #[from]
11        source: serde_json::Error,
12    },
13
14    #[error(transparent)]
15    WireguardError {
16        #[from]
17        source: nym_wireguard_types::Error,
18    },
19}