Created
September 25, 2013 03:01
-
-
Save TheFrozenFire/6694680 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try { | |
if( !process_x() ) | |
throw new Exception; | |
/* do a lot of other things */ | |
if( !process_y() ) | |
throw new Exception; | |
/* do a lot of other things */ | |
if( !process_z() ) | |
throw new Exception; | |
/* do a lot of other things */ | |
/* SUCCESS */ | |
} catch(Exception $e) { | |
clean_all_processes(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment