spawn_access_control/
error.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use thiserror::Error;

#[derive(Debug, Error)]
pub enum Error {
    #[error("Access denied: {0}")]
    AccessDenied(String),
    
    #[error("Database error: {0}")]
    Database(String),
    
    #[error("IO error: {0}")]
    Io(String),
    
    #[error("Security error: {0}")]
    Security(String),
    
    #[error("Serialization error: {0}")]
    Serialization(String),
}