Skip to content

Instantly share code, notes, and snippets.

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