Enum cqrs_es2::AggregateError [−][src]
pub enum AggregateError { UserError(UserErrorPayload), TechnicalError(String), }
Expand description
The base error for the framework.
Variants
The user has made an error, a String value contains a message to be delivered to the user.
Tuple Fields of UserError
A technical error was encountered that prevented the command from being applied to the aggregate. In general the accompanying message should be logged for investigation rather than returned to the user.
Tuple Fields of TechnicalError
0: String
Implementations
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.