sea_orm/rbac/
error.rs

1use thiserror::Error;
2
3/// An error from unsuccessful database operations
4#[derive(Error, Debug, Clone, PartialEq, Eq)]
5pub enum Error {
6    /// Resource not found
7    #[error("Resource Not Found: {0}")]
8    ResourceNotFound(String),
9    /// Permission not found
10    #[error("Permission Not Found: {0}")]
11    PermissionNotFound(String),
12    /// Role not found
13    #[error("Role Not Found: {0}")]
14    RoleNotFound(String),
15    /// User not found
16    #[error("User Not Found: {0}")]
17    UserNotFound(String),
18}