Trait feldera_types::error::DetailedError

source ·
pub trait DetailedError:
    StdError
    + ResponseError
    + Serialize {
    // Required method
    fn error_code(&self) -> Cow<'static, str>;
}
Expand description

Error trait which internal errors must implement such that it can be transformed to a complete JSON error response.

Required Methods§

source

fn error_code(&self) -> Cow<'static, str>

HTTP status code.

Object Safety§

This trait is not object safe.

Implementors§