diff options
Diffstat (limited to 'tests/features151/swallowedExceptions/SwallowedException.java')
-rw-r--r-- | tests/features151/swallowedExceptions/SwallowedException.java | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/features151/swallowedExceptions/SwallowedException.java b/tests/features151/swallowedExceptions/SwallowedException.java new file mode 100644 index 000000000..db1b1849f --- /dev/null +++ b/tests/features151/swallowedExceptions/SwallowedException.java @@ -0,0 +1,17 @@ +public class SwallowedException { + + public void foo() throws Exception { + throw new Exception("ta da!"); + } + + public void bar() { + try { + foo(); + } + catch(Exception ex) { + // yum yum + } + } + + +}
\ No newline at end of file |