How about decorating uncaught exceptions with line and column number? #212
Marvin-Brouwer
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
If you currently try to format this into a DateOnly property:
{ "date": "" }You will get the a
FormatExceptionwith the message:"String '' was not recognized as a valid DateOnly.".This is similar for all formatting errors.
Arguably, that's the error you'd expect. It's just malformed data.
Would it make sense to wrap the call to
IConverters in the library in a try-catch and decorate the data dictionary with a "line" and "column" property?Or maybe even the Mapped property it's trying to convert like when you try to null a non-nullable?
Perhaps it even makes sense to wrap any exception in a
ConverterExceptionand just pass the exception as inner exception?Beta Was this translation helpful? Give feedback.
All reactions