I am trying to control how the error is going to be displayed.
I am trying to do something similar to this: https://stackoverflow.com/a/22271986/10538678 but on global level (for every exception thrown). I tried this example described in this question, but i have no idea how to implement this globally
Instead of:
Exception in thread "threadName" Name of Exception : Description
... ...... .. // Call Stack
For example i want error to display:
<Error>
<ErrorCode>customErrorCode</ErrorCode>
<ErorMsg>Description</ErorMsg>
<ErrorClass>className</ErrorClass>
<ErrorThread>threadName</ErrorThread>
</Error>
EDIT: I have multiple dependencies which use exception handling and i cannot modify them.