Created
December 11, 2012 18:25
-
-
Save dain/4260847 to your computer and use it in GitHub Desktop.
Java7 exception flow analysis
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 class CallException | |
implements Callable<Boolean> | |
{ | |
@Override | |
public Boolean call() | |
throws IOException | |
{ | |
try { | |
if (Math.random() > 0) { | |
throw new IOException("random io failure"); | |
} | |
} | |
catch (Throwable e) { | |
e.printStackTrace(); | |
throw e; | |
} | |
return true; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment