fixed the compilation error by replacing a Throwable by an Exception in
he exceptionCaught implementations