Skip to content

Instantly share code, notes, and snippets.

@benweidig
Created May 16, 2020 17:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benweidig/3ce2d9eb038678a41cd8c3d22eca3407 to your computer and use it in GitHub Desktop.
Save benweidig/3ce2d9eb038678a41cd8c3d22eca3407 to your computer and use it in GitHub Desktop.
try {
// might throw IllegalArgumentException
doWork();
// might throw ArithmeticException
doMoreWork();
}
catch (IllegalArgumentExcetion e) {
// handle exception
}
finally {
// might throw IOException
cleanup();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment