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?
|
2018-12-29 03:29:10 +01:00
|
|
|
// 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,
|
2018-12-29 03:29:10 +01:00
|
|
|
Plugin,
|
2018-11-26 07:13:22 +01:00
|
|
|
}
|