Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Exceptions inside finally block

843840Aug 28 2002 — edited Aug 28 2002
Hello, I am using JSP-Servlet construct to develop enterprise applications.

I was implementing the error/exception handling the other day when I realized that I don't know what to do if an exception occurs in the finally block. For example,
try {
 //my code
}
catch (Exception e) {
 //print something to log
}
finally {
 try {
  //do some cleanup
 }
 catch (Exception e) {
  //THIS IS WHERE I DON'T KNOW WHAT TO DO
 }
}
Please help

Thanks,
Haig
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 25 2002
Added on Aug 28 2002
7 comments
265 views