Skip to main content

modkit_db/secure/
error.rs

1/// Errors that can occur during scoped query execution.
2#[derive(thiserror::Error, Debug)]
3pub enum ScopeError {
4    /// Database error occurred during query execution.
5    #[error("database error: {0}")]
6    Db(#[from] sea_orm::DbErr),
7
8    /// Invalid scope configuration.
9    #[error("invalid scope: {0}")]
10    Invalid(&'static str),
11
12    /// Operation denied - entity not accessible in current security scope.
13    #[error("access denied: {0}")]
14    Denied(&'static str),
15}