Trait actix_web::error::ResponseError [−][src]
pub trait ResponseError: Fail + InternalResponseErrorAsFail { fn error_response(&self) -> HttpResponse { ... } }
Error that can be converted to HttpResponse
Provided Methods
fn error_response(&self) -> HttpResponse
Create response for error
Internal server error is generated by default.
Implementations on Foreign Types
impl<T> ResponseError for Compat<T> where
T: Display + Debug + Sync + Send + 'static, [src]
impl<T> ResponseError for Compat<T> where
T: Display + Debug + Sync + Send + 'static, Compatibility for failure::Error
fn error_response(&self) -> HttpResponse[src]
fn error_response(&self) -> HttpResponseimpl ResponseError for JsonError[src]
impl ResponseError for JsonErrorInternalServerError for JsonError
fn error_response(&self) -> HttpResponse[src]
fn error_response(&self) -> HttpResponseimpl ResponseError for TimerError[src]
impl ResponseError for TimerErrorInternalServerError for TimerError
fn error_response(&self) -> HttpResponse[src]
fn error_response(&self) -> HttpResponseimpl ResponseError for DeError[src]
impl ResponseError for DeErrorReturn BAD_REQUEST for de::value::Error
fn error_response(&self) -> HttpResponse[src]
fn error_response(&self) -> HttpResponseimpl ResponseError for Utf8Error[src]
impl ResponseError for Utf8ErrorReturn BAD_REQUEST for Utf8Error
fn error_response(&self) -> HttpResponse[src]
fn error_response(&self) -> HttpResponseimpl ResponseError for HttpError[src]
impl ResponseError for HttpErrorReturn InternalServerError for HttpError,
Response generation can return HttpError, so it is internal error
fn error_response(&self) -> HttpResponse[src]
fn error_response(&self) -> HttpResponseimpl ResponseError for Error[src]
impl ResponseError for ErrorReturn InternalServerError for io::Error
fn error_response(&self) -> HttpResponse[src]
fn error_response(&self) -> HttpResponseimpl ResponseError for InvalidHeaderValue[src]
impl ResponseError for InvalidHeaderValueBadRequest for InvalidHeaderValue
fn error_response(&self) -> HttpResponse[src]
fn error_response(&self) -> HttpResponseimpl ResponseError for InvalidHeaderValueBytes[src]
impl ResponseError for InvalidHeaderValueBytesBadRequest for InvalidHeaderValue
fn error_response(&self) -> HttpResponse[src]
fn error_response(&self) -> HttpResponseimpl ResponseError for Canceled[src]
impl ResponseError for CanceledInternalServerError for futures::Canceled
fn error_response(&self) -> HttpResponse[src]
fn error_response(&self) -> HttpResponseimpl ResponseError for MailboxError[src]
impl ResponseError for MailboxErrorInternalServerError for actix::MailboxError
fn error_response(&self) -> HttpResponse[src]
fn error_response(&self) -> HttpResponseImplementors
impl ResponseError for SendRequestErrorimpl ResponseError for UrlParseErrorimpl ResponseError for actix_web::error::ParseErrorimpl ResponseError for PayloadErrorimpl ResponseError for actix_web::error::CookieParseErrorimpl ResponseError for MultipartErrorimpl ResponseError for ExpectErrorimpl ResponseError for ContentTypeErrorimpl ResponseError for UrlencodedErrorimpl ResponseError for JsonPayloadErrorimpl ResponseError for UriSegmentErrorimpl ResponseError for UrlGenerationErrorimpl ResponseError for StaticFileErrorimpl<T> ResponseError for InternalError<T> where
T: Send + Sync + Debug + Display + 'static,impl ResponseError for CorsErrorimpl ResponseError for CsrfErrorimpl ResponseError for CookieSessionErrorimpl ResponseError for ProtocolErrorimpl ResponseError for HandshakeError