Enum oxide_auth::frontends::simple::endpoint::Error [−][src]
pub enum Error<W: WebRequest> {
Web(W::Error),
OAuth(OAuthError),
}Expand description
Errors either caused by the underlying web types or the library.
Variants
Web(W::Error)An operation on a request or response failed.
Typically, this should be represented as a 500–Internal Server Error.
Tuple Fields of Web
0: W::ErrorOAuth(OAuthError)Some part of the library signaled failure.
No response has been generated, and in some cases doing so should be done with care or under the consideration of an attacker currently trying to abuse the system.
Tuple Fields of OAuth
0: OAuthErrorImplementations
Convert into a single error type.
Note that the additional information whether the error occurred in the web components or
during the flow needs to be implicitely contained in the types. Otherwise, this information
is lost and you should use or provide a From<Error<W>> implementation instead. This
method is still useful for frontends providing a standard error type that interacts with
their web server library.