Hi,
 
I'm facing a problem that my old javascript file no longer works properly
with constructions like instanceof, getClass(), throw.   Can someone point
me out how to do this?
 
try {
} catch (ex) {
    if (ex  instanceof Packages.xxxx.xxxx.xxxx) {
        //Do something 1
    } else if (ex.getClass().getName().equals("xxxx")) {
        //Do something 2
    }  else {
        //Do something 3
        throw(ex);
    }
}
 
Cheers,
Robby Pelssers

Reply via email to