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.
There exist an
GWT.setUncaughtExceptionHandler(new ClientExceptionHandler());
Its already discribed here: GWT.setUncaughtExceptionHandler()
I don't think I have to add anything:)
I used the java's try catch to catch javascriptexception. it works well:)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.