Skip to content

Instantly share code, notes, and snippets.

@camelcaseblog
Last active July 13, 2019 19:13
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 camelcaseblog/3ba8193a6d4f2836963541b5dc9c79c7 to your computer and use it in GitHub Desktop.
Save camelcaseblog/3ba8193a6d4f2836963541b5dc9c79c7 to your computer and use it in GitHub Desktop.
try {
System.out.println(obj.charAt(0));
} catch(NullPointerException e) {
System.out.println("NullPointerException..");
} catch(MyAwesomeCustomException e) {
System.out.println("Caught an exception: " + e.myCustomInformation);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment