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
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?
The text was updated successfully, but these errors were encountered:
vytas7
changed the title
Consider making DecodeError and ValidationError inherit from ValueError
Consider making DecodeError and ValidationError inherit from ValueErrorJan 20, 2024
Description
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 makeDecodeError
andValidationError
subclasses ofValueError
somewhere in the hierarchy?The text was updated successfully, but these errors were encountered: