atrium_api/
error.rs

1#![doc = "Error types."]
2use thiserror::Error;
3
4/// Error type for this crate.
5#[derive(Error, Debug)]
6pub enum Error {
7    #[error(transparent)]
8    IpldCoreSerde(#[from] ipld_core::serde::SerdeError),
9    #[error("not allowed in ATProtocol")]
10    NotAllowed,
11}
12
13/// Type alias to use this library's [`Error`](enum@crate::error::Error) type in a [`Result`](core::result::Result).
14pub type Result<T> = core::result::Result<T, Error>;