-
-
Notifications
You must be signed in to change notification settings - Fork 596
Open
Labels
Dialects v2Issues which will likely be addressed as part of reworked dialect supportIssues which will likely be addressed as part of reworked dialect supportEnhancementSome new desired functionalitySome new desired functionalityError ReportingIssues related to clearer or more robust validation error reportingIssues related to clearer or more robust validation error reporting
Description
Python 3.11 now supports exception groups for grouping together multiple (simultaneous, unrelated) exceptions.
This seems to suit us -- right now we have:
Validator.iter_errors
, aimed at returning (not raising) all errorsValidator.is_valid
, aimed at returning no errors and indicating via a boolean whether things are OKValidator.validate
, aimed at raising 1 single exception (the first encountered one)
Another API where we raise all exceptions iter_errors
would have returned seems like it may fit the picture.
Reviewing the notes API to see if we should make any use of it is likely also wise.
plondino
Metadata
Metadata
Assignees
Labels
Dialects v2Issues which will likely be addressed as part of reworked dialect supportIssues which will likely be addressed as part of reworked dialect supportEnhancementSome new desired functionalitySome new desired functionalityError ReportingIssues related to clearer or more robust validation error reportingIssues related to clearer or more robust validation error reporting