Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multiple javascript exception handling in GWT

I wonder how people usually do to handle multiple exception from javascript in GWT? for example, this method from the IndexedDB specification:

IDBRequest add( in any value, in optional any key ) raises (IDBDatabaseException, DOMException);

It can raise two JavaScript exception objects, so i have no idea how to implement wrapper for it in Java.

like image 514
Chan Le Avatar asked Mar 15 '26 13:03

Chan Le


1 Answers

There exist an

GWT.setUncaughtExceptionHandler(new ClientExceptionHandler());

Its already discribed here: GWT.setUncaughtExceptionHandler()

I don't think I have to add anything :)

like image 122
Stefan Avatar answered Mar 17 '26 03:03

Stefan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!