3

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.

2 Answers 2

1

There exist an

GWT.setUncaughtExceptionHandler(new ClientExceptionHandler());

Its already discribed here: GWT.setUncaughtExceptionHandler()

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

Sign up to request clarification or add additional context in comments.

Comments

0

I used the java's try catch to catch javascriptexception. it works well :)

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.