kanidm/src/lib/error.rs

20 lines
433 B
Rust
Raw Normal View History

2018-11-13 08:14:26 +01:00
#[derive(Debug, PartialEq)]
pub enum SchemaError {
2018-11-20 07:51:10 +01:00
NotImplemented,
InvalidClass,
2018-11-13 08:14:26 +01:00
// FIXME: Is there a way to say what we are missing on error?
// Yes, add a string on the enum.
2018-11-20 07:51:10 +01:00
MissingMustAttribute,
InvalidAttribute,
InvalidAttributeSyntax,
EmptyFilter,
2018-11-13 08:14:26 +01:00
}
2018-11-26 07:13:22 +01:00
#[derive(Serialize, Deserialize, Debug, PartialEq)]
pub enum OperationError {
EmptyRequest,
Backend,
SchemaViolation,
Plugin,
2018-11-26 07:13:22 +01:00
}