Created
October 25, 2012 08:14
-
-
Save yurylyt/3951362 to your computer and use it in GitHub Desktop.
where-do-stack-traces-come-2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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