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

    catching errors/exceptions

    Hi all,

    Is there a way to introduce a central JS exception handler for my SmartGWT application?

    Or at least, is there a central mechanism to insert exception handlers to all code points where the SmartGWT library calls my event handlers?

    Since these calls originate from the JS world, I am unable to catch them with GWT's uncoughtExceptionHandler.

    Uncought exceptions makes debugging really hard, but manually inserting exception handling into every event handler would be a pain.

    Is there a better way to do this?

    I'll have a close look at this. There is a GWT issue related to this so please star it.



      Anything new about this?

      It still happens from time to time that an exception is generated in JS space (triggered by some browser event), which I can not catch.

      As far as I know, this is nearly impossible to debug now.


        See this post. Workarounds have just been added to address the GWT 2.0 exception swallowing flaw.