rsiot_auth/error.rs
1use hmac::digest::InvalidLength;
2
3#[derive(Debug, thiserror::Error)]
4pub enum Error {
5 #[error("TokioTaskJoinError: {0}")]
6 TokioTaskJoinError(#[from] tokio::task::JoinError),
7
8 #[error("CmpOutput: {0}")]
9 CmpOutput(rsiot_component_core::ComponentError),
10
11 #[error("ProcessRequest: {0}")]
12 ProcessRequest(String),
13
14 #[error("Hmac error: {0}")]
15 Hmac(#[from] InvalidLength),
16
17 #[error("Jwt error: {0}")]
18 Jwt(#[from] jwt::Error),
19}