Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrap errors in dataclass/attrs post-init methods #472

Merged
merged 1 commit into from
Jul 6, 2023

Commits on Jul 6, 2023

  1. Wrap errors in dataclass/attrs post-init methods

    When decoding/converting to a dataclass/attrs type with a
    `__post_init__`/`__attrs_post_init__` method, we now wrap all
    `ValueError`/`TypeError` exceptions in a `ValidationError`. This mirrors
    the behavior used in the new `Struct.__post_init__` support, and helps
    provide more uniform error handling support.
    jcrist committed Jul 6, 2023
    Configuration menu
    Copy the full SHA
    1475a79 View commit details
    Browse the repository at this point in the history