Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //one
- //two
- try {
- //open one
- //open two
- //do stuff with one and two
- //close one
- //close two
- } catch (Throwable t) {
- //oh snap!.. this happended t
- try {
- //close one
- } catch {
- //log close one failure but don't hijack the reason for the method fail
- }
- try {
- //close two
- } catch {
- //log close two failure but don't hijack the reason for the method fail
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement