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
-
If you currently try to format this into a DateOnly property:
You will get the a
FormatException
with 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
IConverter
s 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
ConverterException
and just pass the exception as inner exception?Beta Was this translation helpful? Give feedback.
All reactions