bee-api-types 1.0.1

Common types required by nodes and clients APIs like bodies, errors, responses and DTOs.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
// Copyright 2020-2022 IOTA Stiftung
// SPDX-License-Identifier: Apache-2.0

use bee_block::Error as BlockError;
use thiserror::Error;

#[derive(Debug, Error)]
pub enum Error {
    #[error("invalid field \"{0}\"")]
    InvalidField(&'static str),
    #[error("{0}")]
    Block(#[from] BlockError),
}