Method
__init__
(
self,
errors: Sequence[Any],
*,
endpoint_ctx: EndpointContext | None = None,
)
Source from the content-addressed store, hash-verified
| 173 | |
| 174 | class ValidationException(Exception): |
| 175 | def __init__( |
| 176 | self, |
| 177 | errors: Sequence[Any], |
| 178 | *, |
| 179 | endpoint_ctx: EndpointContext | None = None, |
| 180 | ) -> None: |
| 181 | self._errors = errors |
| 182 | self.endpoint_ctx = endpoint_ctx |
| 183 | |
| 184 | ctx = endpoint_ctx or {} |
| 185 | self.endpoint_function = ctx.get("function") |
| 186 | self.endpoint_path = ctx.get("path") |
| 187 | self.endpoint_file = ctx.get("file") |
| 188 | self.endpoint_line = ctx.get("line") |
| 189 | |
| 190 | def errors(self) -> Sequence[Any]: |
| 191 | return self._errors |
Callers
nothing calls this directly
Tested by
no test coverage detected