1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Copyright 2022 IOTA Stiftung
// SPDX-License-Identifier: Apache-2.0

use inx::tonic;
use thiserror::Error;

#[derive(Debug, Error)]
pub enum Error {
    #[error("gRPC status code: {0}")]
    StatusCode(#[from] tonic::Status),
    #[error(transparent)]
    TonicError(#[from] tonic::transport::Error),
    #[error(transparent)]
    InxError(#[from] bee_block::InxError),
}