In IE in the ff. code, the catch clause is entered if someMethodThatThrowsExceptions does throw an exception. However, this is not the case in Firefox. Is this a limitation in Firefox’s Javascript engine or LiveConnect implementation? Does a workaround exist?
try {
document.applets["someApplet"].someMethodThatThrowsExceptions();
} catch (e) {
handleError();
}
Checked where I should have checked in the first place: https://developer.mozilla.org/en/LiveConnect. Found out that this is a known problem in a certain LiveConnect version. Discussion, solution and work-around here: http://forums.java.net/jive/thread.jspa?threadID=45933&tstart=0.