THE ORIONIS API
Build with clarity.
Explore the building blocks of an async-first Python framework. Every module, class, and method — connected, searchable, and ready to build with.
exception documentation
class ValidationException(Exception): (source)
Constructor: ValidationException(failures, message)
Undocumented
| Static Method | _summary |
Build the summary message reported alongside the field errors. |
| Method | __init__ |
Initialize the exception with one or more validation failures. |
| Method | error |
Return the validation failures as a serializable dictionary. |
| Instance Variable | errors |
Undocumented |
| Instance Variable | failure |
Undocumented |
| Instance Variable | failures |
Undocumented |
| Instance Variable | message |
Undocumented |
Build the summary message reported alongside the field errors.
| Parameters | |
failures:tuple[ValidationFailure, ...] | Every failure collected for the payload. |
| Returns | |
str | First failure message, suffixed with the remaining error count. |
def __init__(self, failures:
ValidationFailure | Sequence[ ValidationFailure], message: str | None = None):
(source)
¶
Initialize the exception with one or more validation failures.
| Parameters | |
failures:ValidationFailure | Sequence[ValidationFailure] | Provide a single failure or every failure collected for a payload. |
message:str | None, optional | Override the summary message reported to the client. |
| Returns | |
None | Return None after grouping the failures by field name. |
Return the validation failures as a serializable dictionary.
| Returns | |
dict | Mapping with a message summary and an errors object indexing every message by field name. |