fix compilation errors for exceptionCaught