Module error

Source
Expand description

Error and Result module

Structs§

BlockingError
An error representing a problem running a blocking task on a thread pool.
Error
General purpose Actix Web error.
HttpError
A generic “error” for HTTP connections
InternalError
Wraps errors to alter the generated response status code.

Enums§

ContentTypeError
A set of error that can occur during parsing content type.
DispatchError
A set of errors that can occur during dispatching HTTP requests.
JsonPayloadError
A set of errors that can occur during parsing json payloads
ParseError
A set of errors that can occur during parsing HTTP streams.
PathError
A set of errors that can occur during parsing request paths
PayloadError
A set of errors that can occur during payload parsing.
QueryPayloadError
A set of errors that can occur during parsing query strings.
ReadlinesError
Error type returned when reading body as lines.
UrlGenerationError
Errors which can occur when attempting to generate resource uri.
UrlencodedError
A set of errors that can occur during parsing urlencoded payloads

Traits§

ResponseError
Errors that can generate responses.

Functions§

ErrorBadGateway
Helper function that wraps any error and generates a BAD_GATEWAY response.
ErrorBadRequest
Helper function that wraps any error and generates a BAD_REQUEST response.
ErrorConflict
Helper function that wraps any error and generates a CONFLICT response.
ErrorExpectationFailed
Helper function that wraps any error and generates a EXPECTATION_FAILED response.
ErrorFailedDependency
Helper function that wraps any error and generates a FAILED_DEPENDENCY response.
ErrorForbidden
Helper function that wraps any error and generates a FORBIDDEN response.
ErrorGatewayTimeout
Helper function that wraps any error and generates a GATEWAY_TIMEOUT response.
ErrorGone
Helper function that wraps any error and generates a GONE response.
ErrorHttpVersionNotSupported
Helper function that wraps any error and generates a HTTP_VERSION_NOT_SUPPORTED response.
ErrorImATeapot
Helper function that wraps any error and generates a IM_A_TEAPOT response.
ErrorInsufficientStorage
Helper function that wraps any error and generates a INSUFFICIENT_STORAGE response.
ErrorInternalServerError
Helper function that wraps any error and generates a INTERNAL_SERVER_ERROR response.
ErrorLengthRequired
Helper function that wraps any error and generates a LENGTH_REQUIRED response.
ErrorLocked
Helper function that wraps any error and generates a LOCKED response.
ErrorLoopDetected
Helper function that wraps any error and generates a LOOP_DETECTED response.
ErrorMethodNotAllowed
Helper function that wraps any error and generates a METHOD_NOT_ALLOWED response.
ErrorMisdirectedRequest
Helper function that wraps any error and generates a MISDIRECTED_REQUEST response.
ErrorNetworkAuthenticationRequired
Helper function that wraps any error and generates a NETWORK_AUTHENTICATION_REQUIRED response.
ErrorNotAcceptable
Helper function that wraps any error and generates a NOT_ACCEPTABLE response.
ErrorNotExtended
Helper function that wraps any error and generates a NOT_EXTENDED response.
ErrorNotFound
Helper function that wraps any error and generates a NOT_FOUND response.
ErrorNotImplemented
Helper function that wraps any error and generates a NOT_IMPLEMENTED response.
ErrorPayloadTooLarge
Helper function that wraps any error and generates a PAYLOAD_TOO_LARGE response.
ErrorPaymentRequired
Helper function that wraps any error and generates a PAYMENT_REQUIRED response.
ErrorPreconditionFailed
Helper function that wraps any error and generates a PRECONDITION_FAILED response.
ErrorPreconditionRequired
Helper function that wraps any error and generates a PRECONDITION_REQUIRED response.
ErrorProxyAuthenticationRequired
Helper function that wraps any error and generates a PROXY_AUTHENTICATION_REQUIRED response.
ErrorRangeNotSatisfiable
Helper function that wraps any error and generates a RANGE_NOT_SATISFIABLE response.
ErrorRequestHeaderFieldsTooLarge
Helper function that wraps any error and generates a REQUEST_HEADER_FIELDS_TOO_LARGE response.
ErrorRequestTimeout
Helper function that wraps any error and generates a REQUEST_TIMEOUT response.
ErrorServiceUnavailable
Helper function that wraps any error and generates a SERVICE_UNAVAILABLE response.
ErrorTooManyRequests
Helper function that wraps any error and generates a TOO_MANY_REQUESTS response.
ErrorUnauthorized
Helper function that wraps any error and generates a UNAUTHORIZED response.
ErrorUnavailableForLegalReasons
Helper function that wraps any error and generates a UNAVAILABLE_FOR_LEGAL_REASONS response.
ErrorUnprocessableEntity
Helper function that wraps any error and generates a UNPROCESSABLE_ENTITY response.
ErrorUnsupportedMediaType
Helper function that wraps any error and generates a UNSUPPORTED_MEDIA_TYPE response.
ErrorUpgradeRequired
Helper function that wraps any error and generates a UPGRADE_REQUIRED response.
ErrorUriTooLong
Helper function that wraps any error and generates a URI_TOO_LONG response.
ErrorVariantAlsoNegotiates
Helper function that wraps any error and generates a VARIANT_ALSO_NEGOTIATES response.

Type Aliases§

Result
A convenience Result for Actix Web operations.