d3xs_firmware/
errors.rs

1use thiserror_no_std::Error;
2
3#[derive(Error, Debug)]
4pub enum Error {
5    #[error("protocol error")]
6    Protocol(#[from] d3xs_protocol::errors::Error),
7    #[error("auth decrypt failed")]
8    AuthError,
9    #[error("failed to call esp api: {0}")]
10    EspError(&'static str),
11}
12pub type Result<T> = core::result::Result<T, Error>;