Exception Clarity Improvement #648
Unanswered
tofanpetru
asked this question in
Q&A
Replies: 1 comment 5 replies
-
Hello @tofanpetru.
The error you showed occurs after the main work, outside of the Mapster Code itself. Сan wrap in try-catch blocks. The place where the function itself is called is in the adapter. But then you will only receive data about the top-level types transferred for processing.
Such try-catch blocks are not created in the Conversion function itself. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone!
I would like to receive some advice. How can I make the result of an exception much clearer? For example, what values and properties caused the exception?
The ultimate goal is to log this message to be much more user-friendly and clear. Because the application is running somewhere and it's very difficult to investigate
Let's assume that Mapster will throw an exception if it performs an incorrect conversion.
Beta Was this translation helpful? Give feedback.
All reactions