Enum kafka_json_processor_core::error::ErrorKind
source · [−]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
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
Default wrapper for any error.
FieldNotFound
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
sourceimpl From<ErrorKind> for ProcessingError
impl From<ErrorKind> for ProcessingError
Auto Trait Implementations
impl !RefUnwindSafe for ErrorKind
impl !Send for ErrorKind
impl !Sync for ErrorKind
impl Unpin for ErrorKind
impl !UnwindSafe for ErrorKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more