ibc_grpc_server/
error.rs

1use std::str::Utf8Error;
2
3use derive_more::Display;
4use ibc::core::ics24_host::error::ValidationError;
5
6#[derive(Debug, Display)]
7pub enum ServerError {
8    ValidateIdentifier(ValidationError),
9    FromUtf8(Utf8Error),
10}
11
12impl From<ServerError> for String {
13    fn from(err: ServerError) -> Self {
14        err.to_string()
15    }
16}