S
Scott Harper
I got bit by the NoClassDefFoundError. Lo and behold, I figured out what the
problem was, so thankfully that's not the question here...
This occurs in a servlet. In my doPost method, as a last resort, I was
catching (Exception e) just to make sure anything unexpected didn't go
un-noticed. What was throwing me off was that my last-chance catch block
never got executed to alert me of the problem. I wasn't getting any error
messages, but things just weren't working.
Alas, NoClassDefFoundError is not and Exception. By changing my last-chance
catch block to catch (Throwable) instead, I now get notified of the error.
As a relative newcomer to the Java language, is it considered good form to
catch Throwable?
scott
problem was, so thankfully that's not the question here...
This occurs in a servlet. In my doPost method, as a last resort, I was
catching (Exception e) just to make sure anything unexpected didn't go
un-noticed. What was throwing me off was that my last-chance catch block
never got executed to alert me of the problem. I wasn't getting any error
messages, but things just weren't working.
Alas, NoClassDefFoundError is not and Exception. By changing my last-chance
catch block to catch (Throwable) instead, I now get notified of the error.
As a relative newcomer to the Java language, is it considered good form to
catch Throwable?
scott