mirror of
https://github.com/kanidm/kanidm.git
synced 2025-02-24 04:57:00 +01:00
26 lines
564 B
Rust
26 lines
564 B
Rust
#[derive(Debug, PartialEq)]
|
|
pub enum SchemaError {
|
|
NotImplemented,
|
|
InvalidClass,
|
|
// FIXME: Is there a way to say what we are missing on error?
|
|
// Yes, add a string on the enum.
|
|
MissingMustAttribute(String),
|
|
InvalidAttribute,
|
|
InvalidAttributeSyntax,
|
|
EmptyFilter,
|
|
Corrupted,
|
|
}
|
|
|
|
#[derive(Serialize, Deserialize, Debug, PartialEq)]
|
|
pub enum OperationError {
|
|
EmptyRequest,
|
|
Backend,
|
|
NoMatchingEntries,
|
|
SchemaViolation,
|
|
Plugin,
|
|
FilterGeneration,
|
|
InvalidDBState,
|
|
InvalidRequestState,
|
|
InvalidState,
|
|
}
|