sea-orm-sync 2.0.0-rc.38

🐚 The sync version of SeaORM
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use thiserror::Error;

/// An error from unsuccessful database operations
#[derive(Error, Debug, Clone, PartialEq, Eq)]
pub enum Error {
    /// Resource not found
    #[error("Resource Not Found: {0}")]
    ResourceNotFound(String),
    /// Permission not found
    #[error("Permission Not Found: {0}")]
    PermissionNotFound(String),
    /// Role not found
    #[error("Role Not Found: {0}")]
    RoleNotFound(String),
    /// User not found
    #[error("User Not Found: {0}")]
    UserNotFound(String),
}