pub fn failed<S, R>(
state: &S,
ctx: &Context,
stage: &str,
err: &S::Error,
) -> Errorswhere
S: Storage<R>,Available on crate features
http and validation only.Expand description
A storage error on its way to the client.
Storage::classify gets first refusal: a failure it names becomes that
error, correlation id attached. Anything else is logged with the id and
answered with a bare 500.