Skip to content

Instantly share code, notes, and snippets.

@camelcaseblog
Last active July 13, 2019 19:13
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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