Skip to content

Errors

pydantictornado.errors.BodyValidationError

Bases: Error, HTTPError

Request body validation failed.

pydantictornado.errors.Error

Bases: Exception

pydantictornado.errors.DuplicateTagError

Bases: Error, ValueError

Tag already exists in the OpenAPI document.

pydantictornado.errors.MarkerNotFoundError

Bases: Error

pydantictornado.errors.OperationNotFoundError

Bases: Error, ValueError

Operation not found in the OpenAPI document.

pydantictornado.errors.ParameterUsageError

Bases: Error, RuntimeError

Error raised when incorrect usage of a parameter is detected.

This exception is meant to highlight illegal or inappropriate use of parameters in a given context. It ensures the parameter-related violations are clearly captured and communicated during runtime. Typically, it is used in scenarios where parameter values do not meet the required constraints or violate expected behavior.

pydantictornado.errors.RuleNotFoundError

Bases: Error, ValueError

Rule not found in the active routes.

pydantictornado.errors.TagNotFoundError

Bases: Error, ValueError

Tag not found in the OpenAPI document.

pydantictornado.errors.UnsupportedAnnotationError

Bases: Error

Annotation is not supported by the OpenAPI decorators.