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 #258, __notes__ were added to support passing AttributeValidationNote and IterableValidationNote around. transform_errors uses these notes to pass the target type when calling format_exception. This works well in most cases, except for primitive types.
Feature Request
I want to be able to customize my format_exception function so that I know the exact target type of the exception without needing to inspect the error message. If I understand it correctly, in the current design, __notes__ is only set on exceptions that are raised when structuring an iterable or class, but is not for types like int, float and etc.
The text was updated successfully, but these errors were encountered:
Description
In #258,
__notes__
were added to support passingAttributeValidationNote
andIterableValidationNote
around.transform_errors
uses these notes to pass the target type when callingformat_exception
. This works well in most cases, except for primitive types.Feature Request
I want to be able to customize my
format_exception
function so that I know the exact target type of the exception without needing to inspect the error message. If I understand it correctly, in the current design,__notes__
is only set on exceptions that are raised when structuring an iterable or class, but is not for types likeint
,float
and etc.The text was updated successfully, but these errors were encountered: