[][src]Enum cqrs_es::AggregateError

pub enum AggregateError {
    UserError(UserErrorPayload),
    TechnicalError(String),
}

The base error for the framework.

Variants

UserError(UserErrorPayload)

The user has made an error, a String value contains a message to be delivered to the user.

TechnicalError(String)

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.

Methods

impl AggregateError[src]

pub fn new(msg: &str) -> Self[src]

Convenience function to construct a simple UserError from a &str.

Trait Implementations

impl Debug for AggregateError[src]

impl Display for AggregateError[src]

impl Error for AggregateError[src]

impl From<Error> for AggregateError[src]

impl PartialEq<AggregateError> for AggregateError[src]

impl StructuralPartialEq for AggregateError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.