Skip to content

Instantly share code, notes, and snippets.

@LiorHalfon
Last active November 9, 2022 12:06
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 LiorHalfon/4e55da8011b54c72cedbe2f1e1651c32 to your computer and use it in GitHub Desktop.
Save LiorHalfon/4e55da8011b54c72cedbe2f1e1651c32 to your computer and use it in GitHub Desktop.
A common try catch block
try {
//Block of code to try
}
catch(Exception e) {
logger.error("Got an exception, context: %s", e, context);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment