Alex Rivera | Logout

Putting try catch finally block inside another finally block

Asked 2011-05-23T10:03:34.890
28
 try {
 } catch() {}
 finally {
     try {
     } catch() { }
     finally { }
 }

Is it good to have the code like above?

Edit
Report

1 Answer

2

Looks ugly but sometimes it's the way to go. Depending on the code consider to extract a method with the second try-catch-finally block.

answered 2011-05-23T10:06:10.320

Your Answer