add new endpoint_ctx

This commit is contained in:
Javier Sánchez 2025-12-06 13:51:03 +01:00
parent 91c3e47713
commit 74fc74564b
1 changed files with 8 additions and 2 deletions

View File

@ -200,8 +200,14 @@ class ValidationException(Exception):
class RequestMalformedError(ValidationException):
def __init__(self, errors: Sequence[Any], *, body: Any = None) -> None:
super().__init__(errors)
def __init__(
self,
errors: Sequence[Any],
*,
body: Any = None,
endpoint_ctx: Optional[EndpointContext] = None,
) -> None:
super().__init__(errors, endpoint_ctx=endpoint_ctx)
self.body = body