Enum seamless::api::RouteError
source · pub enum RouteError<B, E> {
NotFound(Request<B>),
Err(E),
}
Expand description
A route is either not found, or we attempted to run it and ran into an issue.
Variants§
NotFound(Request<B>)
No route matched the provided request, so we hand it back.
Err(E)
The matching route failed; this is the error.
Implementations§
source§impl<B, E> RouteError<B, E>
impl<B, E> RouteError<B, E>
sourcepub fn unwrap_err(self) -> E
pub fn unwrap_err(self) -> E
Assume that the RouteError
contains an error and attempt to
unwrap this
Panics
Panics if the RouteError does not contain an error