Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Catch a Servlet exception in GWT Client Side

    Is there any possibility to catch a Servlet exception in GWT Client side? For example: I have an exception happened in the Filter, How could I catch it in GWT side using UncaughtExceptionHandler?

    smartGWT: 3.0p
    IE 8.0

    #2
    No, this is not possible, the client simply receives a normal network response, not a Java Exception.

    A java exception could be caught on the server and wrapped in code that returns an informative error string to the client of course, at which point the client would be able to react to this as appropriate (display the string to the user, resubmit request, etc).

    For more information on error handling in SmartGWT, please read this overview:

    http://www.smartclient.com/smartgwtee-latest/javadoc/com/smartgwt/client/docs/ErrorHandling.html

    Comment

    Working...
    X