File: A_test1.java

package info (click to toggle)
eclipse-jdt-ui 4.15-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 84,736 kB
  • sloc: java: 721,354; xml: 13,098; jsp: 33; makefile: 5
file content (24 lines) | stat: -rw-r--r-- 533 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package try17_out;

import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InterruptedIOException;

public class A_test1 {
	public void foo(int a) throws Exception {
		extracted(a);
	}

	protected void extracted(int a) throws IOException {
		/*[*/try {
			if (a < 10)
				throw new FileNotFoundException();
			else if (a < 20)
				throw new InterruptedIOException();
			else
				throw new IOException();
		} catch (FileNotFoundException | InterruptedIOException ex) {
			ex.printStackTrace();
		}/*]*/
	}
}