#[non_exhaustive]pub enum ExtractQueryParamsError {
QueryDeserializationError(QueryDeserializationError),
}
Expand description
The error returned by QueryParams::extract
when the extraction fails.
See QueryParams::extract
and the documentation of each error variant for more details.
Pavex provides ExtractQueryParamsError::into_response
as the default error handler for
this failure.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
QueryDeserializationError(QueryDeserializationError)
See QueryDeserializationError
for details.
Implementations§
source§impl ExtractQueryParamsError
impl ExtractQueryParamsError
sourcepub fn into_response(&self) -> Response
pub fn into_response(&self) -> Response
Convert an ExtractQueryParamsError
into an HTTP response.
It returns a 400 Bad Request
to the caller.
Trait Implementations§
source§impl Debug for ExtractQueryParamsError
impl Debug for ExtractQueryParamsError
source§impl Display for ExtractQueryParamsError
impl Display for ExtractQueryParamsError
source§impl Error for ExtractQueryParamsError
impl Error for ExtractQueryParamsError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for ExtractQueryParamsError
impl RefUnwindSafe for ExtractQueryParamsError
impl Send for ExtractQueryParamsError
impl Sync for ExtractQueryParamsError
impl Unpin for ExtractQueryParamsError
impl UnwindSafe for ExtractQueryParamsError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more