Skip to content

Instantly share code, notes, and snippets.

@yurylyt
Created October 25, 2012 08:14
Show Gist options
  • Save yurylyt/3951362 to your computer and use it in GitHub Desktop.
Save yurylyt/3951362 to your computer and use it in GitHub Desktop.
where-do-stack-traces-come-2
public static void main(String[] args) throws IOException {
final RuntimeException e = foo();
bar(e);
}
private static RuntimeException foo() {
return new RuntimeException();
}
private static void bar(RuntimeException e) {
throw e;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment