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?
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?