pub type Error<'a> = OpenProtocolError<'a>;
Expand description
Result error type.
Aliased Type§
pub enum Error<'a> {
EmptyField(&'a str),
InvalidField {
field: &'a str,
value: Cow<'a, str>,
description: Cow<'a, str>,
},
InconsistentState(&'a str),
InconsistentField(&'a str),
ConstraintViolated(Cow<'a, str>),
JsonError(Error),
SystemError(Cow<'a, str>),
}
Variants§
EmptyField(&'a str)
The value of a field is the empty string ""
or containing all white-spaces,
which is not allowed as value of that field.
InvalidField
The value of a field is not valid.
InconsistentState(&'a str)
The value of a field is not consistent with the matching value in the state
.
InconsistentField(&'a str)
The value of a field is not consistent with the matching value in the
Controller
structure.
ConstraintViolated(Cow<'a, str>)
An enforced constraint is broken.
JsonError(Error)
Error when serializing/deserializing JSON.
SystemError(Cow<'a, str>)
An unexpected system error.