Reporting exceptions on the client ui [message #1818372] |
Fri, 13 December 2019 08:36  |
Eclipse User |
|
|
|
Good day,
I would like to display a message box for any exceptions that are thrown from the server instead of the default message box that is displayed.
What I am struggling with is that if I throw a checked or runtime exception, the information in the exception is lost and a generic ProcessingException is received by the client.
I have tried to throw a custom ProcessingException (much like the VetoException) but that also becomes a generic ProcessingException on the client. The ProcessException would be perfect because I could encode the context of the exception and provide processing status information.
I have a suspicion that I might have to provide a subclass of DefaultRuntimeExceptionTranslator that handles this case for me. If this is correct then could you please indicate where the translator should be registered or should I provide it via @Replace?
Kind regards,
Mark Ashworth
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04580 seconds