mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
more java tests moved to community
This commit is contained in:
+21
@@ -0,0 +1,21 @@
|
||||
// "Add Catch Clause(s)" "true"
|
||||
|
||||
import java.io.FileNotFoundException;
|
||||
import java.io.IOException;
|
||||
|
||||
class CatchExceptions {
|
||||
|
||||
void foo() throws java.io.IOException, java.io.FileNotFoundException {
|
||||
|
||||
}
|
||||
|
||||
void bar() {
|
||||
try {
|
||||
foo();
|
||||
} catch (FileNotFoundException e) {
|
||||
<selection>e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.</selection>
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user