I use it like this:

GWT.setUncaughtExceptionHandler(new SuperDevModeUncaughtExceptionHandler());



Am Montag, 8. Dezember 2014 18:29:58 UTC+1 schrieb Jens:
>
>
> I tested the exception handler (
>> https://gist.github.com/jnehlmeier/cddbc476fd330b1d4999 
>> <https://www.google.com/url?q=https%3A%2F%2Fgist.github.com%2Fjnehlmeier%2Fcddbc476fd330b1d4999&sa=D&sntz=1&usg=AFQjCNEOfKPnULYklipp_37ayc-cynaGTg>
>> ) 
>>
>> This is what I did: 
>>
>>     logger.log(Level.SEVERE, "RuntimeException", new RuntimeException("2 
>> + 2 = 5"));
>>
>>     GWT.log("RuntimeException", new RuntimeException("2 + 2 = 5"));
>>
>
> The handler is meant to be used with GWT.setUncaughtExceptionHandler(), so 
> for exceptions you have not caught and logged yourself. For testing purpose 
> you can do 
>
> new SuperDevModeUncaughtExceptionHandler().onUncaughtException(new 
> RuntimeException("test"));
>
> -- J. 
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/76a0ae0e-7ec7-4ec4-ac57-24ce680ef4b8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to