Expand description
Some common error types.
Structs§
- General response error.
- A possible error value when extracts data from request fails.
- Error occurred in the router.
- Error occurred in the router.
- Only the endpoints under the router can get the path parameters, otherwise this error will occur.
- A possible error value when parsing query.
Enums§
- A possible error value occurred in the
Cors
middleware. - A possible error value occurred when loading i18n resources.
- ParseCookieError
cookie
A possible error value when parsing cookie. - A possible error value when parsing form.
- A possible error value when parsing JSON.
- ParseMultipartError
multipart
A possible error value when parsing multipart. - A possible error value when parsing typed headers.
- A possible error value when parsing XML.
- A possible error value when parsing YAML.
- A possible error value when reading the body.
- A possible error value occurred when deal with redis session.
- A possible error value occurred when adding a route.
- A possible error value occurred in the
SizeLimit
middleware. - A possible error value when processing static files.
- A possible error value when upgrading connection.
- WebSocketError
websocket
A possible error value when handling websocket.
Traits§
- Represents a type that can be converted to
poem::Result<T>
. - Represents a type that can be converted to
Error
.
Functions§
- Wraps any error into
Error
and the status code isStatusCode::BAD_GATEWAY
. - Wraps any error into
Error
and the status code isStatusCode::BAD_REQUEST
. - Wraps any error into
Error
and the status code isStatusCode::CONFLICT
. - Wraps any error into
Error
and the status code isStatusCode::EXPECTATION_FAILED
. - Wraps any error into
Error
and the status code isStatusCode::FAILED_DEPENDENCY
. - Wraps any error into
Error
and the status code isStatusCode::FORBIDDEN
. - Wraps any error into
Error
and the status code isStatusCode::GATEWAY_TIMEOUT
. - Wraps any error into
Error
and the status code isStatusCode::GONE
. - Wraps any error into
Error
and the status code isStatusCode::HTTP_VERSION_NOT_SUPPORTED
. - Wraps any error into
Error
and the status code isStatusCode::IM_A_TEAPOT
. - Wraps any error into
Error
and the status code isStatusCode::INSUFFICIENT_STORAGE
. - Wraps any error into
Error
and the status code isStatusCode::INTERNAL_SERVER_ERROR
. - Wraps any error into
Error
and the status code isStatusCode::LENGTH_REQUIRED
. - Wraps any error into
Error
and the status code isStatusCode::LOCKED
. - Wraps any error into
Error
and the status code isStatusCode::LOOP_DETECTED
. - Wraps any error into
Error
and the status code isStatusCode::METHOD_NOT_ALLOWED
. - Wraps any error into
Error
and the status code isStatusCode::MISDIRECTED_REQUEST
. - Wraps any error into
Error
and the status code isStatusCode::NETWORK_AUTHENTICATION_REQUIRED
. - Wraps any error into
Error
and the status code isStatusCode::NOT_ACCEPTABLE
. - Wraps any error into
Error
and the status code isStatusCode::NOT_EXTENDED
. - Wraps any error into
Error
and the status code isStatusCode::NOT_FOUND
. - Wraps any error into
Error
and the status code isStatusCode::NOT_IMPLEMENTED
. - Wraps any error into
Error
and the status code isStatusCode::PAYLOAD_TOO_LARGE
. - Wraps any error into
Error
and the status code isStatusCode::PAYMENT_REQUIRED
. - Wraps any error into
Error
and the status code isStatusCode::PRECONDITION_FAILED
. - Wraps any error into
Error
and the status code isStatusCode::PRECONDITION_REQUIRED
. - Wraps any error into
Error
and the status code isStatusCode::PROXY_AUTHENTICATION_REQUIRED
. - Wraps any error into
Error
and the status code isStatusCode::RANGE_NOT_SATISFIABLE
. - Wraps any error into
Error
and the status code isStatusCode::REQUEST_HEADER_FIELDS_TOO_LARGE
. - Wraps any error into
Error
and the status code isStatusCode::REQUEST_TIMEOUT
. - Wraps any error into
Error
and the status code isStatusCode::SERVICE_UNAVAILABLE
. - Wraps any error into
Error
and the status code isStatusCode::TOO_MANY_REQUESTS
. - Wraps any error into
Error
and the status code isStatusCode::UNAUTHORIZED
. - Wraps any error into
Error
and the status code isStatusCode::UNAVAILABLE_FOR_LEGAL_REASONS
. - Wraps any error into
Error
and the status code isStatusCode::UNPROCESSABLE_ENTITY
. - Wraps any error into
Error
and the status code isStatusCode::UNSUPPORTED_MEDIA_TYPE
. - Wraps any error into
Error
and the status code isStatusCode::UPGRADE_REQUIRED
. - Wraps any error into
Error
and the status code isStatusCode::URI_TOO_LONG
. - Wraps any error into
Error
and the status code isStatusCode::VARIANT_ALSO_NEGOTIATES
.
Type Aliases§
- A specialized Result type for Poem.