Module aws_lambda_powertools.event_handler.openapi.exceptions
Classes
class RequestValidationError (errors: Sequence[Any], *, body: Any = None)
-
Raised when the request body does not match the OpenAPI schema
Expand source code
class RequestValidationError(ValidationException): """ Raised when the request body does not match the OpenAPI schema """ def __init__(self, errors: Sequence[Any], *, body: Any = None) -> None: super().__init__(errors) self.body = body
Ancestors
- ValidationException
- builtins.Exception
- builtins.BaseException
class SchemaValidationError (errors: Sequence[Any])
-
Raised when the OpenAPI schema validation fails
Expand source code
class SchemaValidationError(ValidationException): """ Raised when the OpenAPI schema validation fails """
Ancestors
- ValidationException
- builtins.Exception
- builtins.BaseException
class SerializationError (*args, **kwargs)
-
Base exception for all encoding errors
Expand source code
class SerializationError(Exception): """ Base exception for all encoding errors """
Ancestors
- builtins.Exception
- builtins.BaseException
class ValidationException (errors: Sequence[Any])
-
Base exception for all validation errors
Expand source code
class ValidationException(Exception): """ Base exception for all validation errors """ def __init__(self, errors: Sequence[Any]) -> None: self._errors = errors def errors(self) -> Sequence[Any]: return self._errors
Ancestors
- builtins.Exception
- builtins.BaseException
Subclasses
Methods
def errors(self) ‑> Sequence[Any]