bee-rest-api 0.1.7

The default REST API implementation for the IOTA Bee node software.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright 2020-2021 IOTA Stiftung
// SPDX-License-Identifier: Apache-2.0

use bee_message::Error as MessageError;

use thiserror::Error;

#[derive(Debug, Error)]
pub enum Error {
    #[error("Invalid syntax for field \"{0}\"")]
    InvalidSyntaxField(&'static str),
    #[error("Invalid semantic for field \"{0}\"")]
    InvalidSemanticField(&'static str),
    #[error("{0}")]
    Message(#[from] MessageError),
}