Skip to content

Instantly share code, notes, and snippets.

@yurylyt
Created October 25, 2012 08:12
Show Gist options
  • Save yurylyt/3951355 to your computer and use it in GitHub Desktop.
Save yurylyt/3951355 to your computer and use it in GitHub Desktop.
where-do-stack-traces-come-1
public class Main {
public static void main(String[] args) throws IOException {
try {
foo();
} catch (RuntimeException e) {
bar(e);
}
}
private static void foo() {
throw new RuntimeException("Foo!");
}
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