You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Consider making DecodeError and ValidationError inherit from ValueError #634
In many scenarios and libraries one assumes that validation errors inherit from ValueError, however, msgspec's exception classes do not. Would it be possible to make DecodeError and ValidationError subclasses of ValueError somewhere in the hierarchy?
changed the title [-]Consider making `DecodeError` and `ValidationError` inherit from ValueError[/-][+]Consider making `DecodeError` and `ValidationError` inherit from `ValueError`[/+]on Jan 20, 2024
Activity
[-]Consider making `DecodeError` and `ValidationError` inherit from ValueError[/-][+]Consider making `DecodeError` and `ValidationError` inherit from `ValueError`[/+]jcrist commentedon Jan 21, 2024
Makes sense to me, happy to make this change. This would be a breaking change of course, but since we're still in
0.*that shouldn't be unexpected.Siyet commentedon Apr 8, 2026
Ported to the community fork msgspec-arise: issue #27, PR #34