Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try{
- load0(res0);
- someCodeHere();
- load1(res1);
- someOtherCodeHere();
- load2(res2);
- yetAnotherCodeHere();
- load3(res3);
- andYetAnotherCodeHere();
- }
- catch(EType0 e0){
- throw new Exception("whatever happens lol", e0);
- }
- catch(EType1 e1){
- unload0(res0);
- throw new Exception("whatever happens lol", e1);
- }
- catch(EType2 e2){
- unload1(res1);
- unload0(res0);
- throw new Exception("whatever happens lol", e2);
- }
- catch(EType3 e3){
- unload2(res2);
- unload1(res1);
- unload0(res0);
- throw new Exception("whatever happens lol", e3);
- }
- unload3(res3);
- unload2(res2);
- unload1(res1);
- unload0(res0);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement