[−][src]Struct ntex::web::error::DefaultError
Default error type
Trait Implementations
impl Clone for DefaultError
[src]
fn clone(&self) -> DefaultError
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for DefaultError
[src]
impl Default for DefaultError
[src]
fn default() -> DefaultError
[src]
impl ErrorRenderer for DefaultError
[src]
impl<E: WebResponseError<DefaultError>> WebResponseError<DefaultError> for TimeoutError<E>
[src]
Return GATEWAY_TIMEOUT
for TimeoutError
fn status_code(&self) -> StatusCode
[src]
fn error_response(&self, _: &HttpRequest) -> HttpResponse
[src]
impl WebResponseError<DefaultError> for DataExtractorError
[src]
InternalServerError
for DataExtractorError
fn status_code(&self) -> StatusCode
[src]
fn error_response(&self, _: &HttpRequest) -> HttpResponse
[src]
impl WebResponseError<DefaultError> for HttpError
[src]
Return InternalServerError
for HttpError
,
Response generation can return HttpError
, so it is internal error
fn status_code(&self) -> StatusCode
[src]
fn error_response(&self, _: &HttpRequest) -> HttpResponse
[src]
impl WebResponseError<DefaultError> for Error
[src]
Return InternalServerError
for io::Error
fn status_code(&self) -> StatusCode
[src]
fn error_response(&self, _: &HttpRequest) -> HttpResponse
[src]
impl WebResponseError<DefaultError> for UrlGenerationError
[src]
InternalServerError
for UrlGeneratorError
fn status_code(&self) -> StatusCode
[src]
fn error_response(&self, _: &HttpRequest) -> HttpResponse
[src]
impl WebResponseError<DefaultError> for UrlencodedError
[src]
Response renderer for UrlencodedError
fn status_code(&self) -> StatusCode
[src]
fn error_response(&self, _: &HttpRequest) -> HttpResponse
[src]
impl WebResponseError<DefaultError> for JsonPayloadError
[src]
Return BadRequest
for JsonPayloadError
fn status_code(&self) -> StatusCode
[src]
fn error_response(&self, _: &HttpRequest) -> HttpResponse
[src]
impl WebResponseError<DefaultError> for PathError
[src]
Error renderer for PathError
fn status_code(&self) -> StatusCode
[src]
fn error_response(&self, _: &HttpRequest) -> HttpResponse
[src]
impl WebResponseError<DefaultError> for QueryPayloadError
[src]
Error renderer QueryPayloadError
fn status_code(&self) -> StatusCode
[src]
fn error_response(&self, _: &HttpRequest) -> HttpResponse
[src]
impl WebResponseError<DefaultError> for PayloadError
[src]
fn status_code(&self) -> StatusCode
[src]
fn error_response(&self, _: &HttpRequest) -> HttpResponse
[src]
impl WebResponseError<DefaultError> for PayloadError
[src]
PayloadError
returns two possible results:
Overflow
returnsPayloadTooLarge
- Other errors returns
BadRequest
fn status_code(&self) -> StatusCode
[src]
fn error_response(&self, _: &HttpRequest) -> HttpResponse
[src]
impl WebResponseError<DefaultError> for ParseError
[src]
Return BadRequest
for cookie::ParseError
fn status_code(&self) -> StatusCode
[src]
fn error_response(&self, _: &HttpRequest) -> HttpResponse
[src]
impl WebResponseError<DefaultError> for JsonError
[src]
InternalServerError
for JsonError
fn status_code(&self) -> StatusCode
[src]
fn error_response(&self, _: &HttpRequest) -> HttpResponse
[src]
impl WebResponseError<DefaultError> for ContentTypeError
[src]
Return BadRequest
for ContentTypeError
fn status_code(&self) -> StatusCode
[src]
fn error_response(&self, _: &HttpRequest) -> HttpResponse
[src]
impl WebResponseError<DefaultError> for SendRequestError
[src]
Convert SendRequestError
to a server Response
fn status_code(&self) -> StatusCode
[src]
fn error_response(&self, _: &HttpRequest) -> HttpResponse
[src]
impl WebResponseError<DefaultError> for FormError
[src]
InternalServerError
for FormError
fn status_code(&self) -> StatusCode
[src]
fn error_response(&self, _: &HttpRequest) -> HttpResponse
[src]
impl WebResponseError<DefaultError> for SslError
[src]
InternalServerError
for openssl::ssl::Error
fn status_code(&self) -> StatusCode
[src]
fn error_response(&self, _: &HttpRequest) -> HttpResponse
[src]
impl<T: Debug + 'static> WebResponseError<DefaultError> for HandshakeError<T>
[src]
InternalServerError
for openssl::ssl::HandshakeError
fn status_code(&self) -> StatusCode
[src]
fn error_response(&self, _: &HttpRequest) -> HttpResponse
[src]
impl WebResponseError<DefaultError> for DeError
[src]
Return BAD_REQUEST
for de::value::Error
fn status_code(&self) -> StatusCode
[src]
fn error_response(&self, _: &HttpRequest) -> HttpResponse
[src]
impl WebResponseError<DefaultError> for Canceled
[src]
InternalServerError
for Canceled
fn status_code(&self) -> StatusCode
[src]
fn error_response(&self, _: &HttpRequest) -> HttpResponse
[src]
impl<E: Debug + 'static> WebResponseError<DefaultError> for BlockingError<E>
[src]
InternalServerError
for BlockingError
fn status_code(&self) -> StatusCode
[src]
fn error_response(&self, _: &HttpRequest) -> HttpResponse
[src]
impl WebResponseError<DefaultError> for Utf8Error
[src]
Return BAD_REQUEST
for Utf8Error
fn status_code(&self) -> StatusCode
[src]
fn error_response(&self, _: &HttpRequest) -> HttpResponse
[src]
Auto Trait Implementations
impl RefUnwindSafe for DefaultError
impl Send for DefaultError
impl Sync for DefaultError
impl Unpin for DefaultError
impl UnwindSafe for DefaultError
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,