Skip to content

Instantly share code, notes, and snippets.

@TheFrozenFire
Created September 25, 2013 03:01
Show Gist options
  • Save TheFrozenFire/6694680 to your computer and use it in GitHub Desktop.
Save TheFrozenFire/6694680 to your computer and use it in GitHub Desktop.
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