Skip to content

Instantly share code, notes, and snippets.

@sam-irl
Created August 16, 2017 01:25
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 sam-irl/c77a9a08229528d7a58692cdb3d8c0de to your computer and use it in GitHub Desktop.
Save sam-irl/c77a9a08229528d7a58692cdb3d8c0de to your computer and use it in GitHub Desktop.
How to parse errors in Java
catch(Exception e) {
System.err.println("An error occured! Searching the most complete archive of programming questions and answers ever compiled.");
java.awt.Desktop.getDesktop().browse(java.net.URI.create("https://stackoverflow.com/search?q=" + e.getStackTrace()));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment