Skip to main content

set_error_responder

Function set_error_responder 

Source
pub fn set_error_responder(f: ApiErrorResponder)
Available on crate feature axum only.
Expand description

Sets a custom ApiErrorResponder that will be used to convert ApiError to a Response.

For a non-panicking alternative, use try_set_error_responder.

ยงPanics

Panics if the responder is already set.