Skip to content

Instantly share code, notes, and snippets.

@joshkehn
Created July 8, 2010 15:45
Show Gist options
  • Save joshkehn/468178 to your computer and use it in GitHub Desktop.
Save joshkehn/468178 to your computer and use it in GitHub Desktop.
boolean excepted = false;
while(!excepted && (/* Condition */))
{
try
{
/* Amazing code */
}
catch(Exception e)
{
excepted = true;
break;
}
}
if(excepted)
{
/* Handle here or in the catch */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment