pub enum ErrorKind {
    InvalidObjectTree {
        invalid_key: Vec<ObjectKey>,
        reason: String,
    },
    EmptyKey,
    OtherError {
        err: Box<dyn Error>,
    },
    FieldNotFound {
        key: Vec<ObjectKey>,
    },
    ProcessorSkipped {
        reason: String,
    },
}

Variants

InvalidObjectTree

Fields

invalid_key: Vec<ObjectKey>
reason: String

Key is invalid for given object. This may mean that something is wrong with messages in the topic (or with the processor config).

EmptyKey

Object key is empty - this should not be allowed. This means that an empty key was supplied - and there is no way to extract the field from JSON object.

OtherError

Fields

err: Box<dyn Error>

Default wrapper for any error.

FieldNotFound

Fields

key: Vec<ObjectKey>

Low priority error - Field not found and thus, cannot use this message processor. Example: requested to copy $.foo into $.bar, but no $.foo field was present.

ProcessorSkipped

Fields

reason: String

Lowe priority error - processor was skipped for any arbitrary reason. Example: some processor condition was not met.

Trait Implementations

Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
Converts to this type from the input type.
Converts to this type from the input type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Converts to this type from the input type.

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.