...
Code Block | ||
---|---|---|
| ||
import java.io.FileInputStream; import java.io.FileNotFoundException; class ExceptionExample { public static void main(String[] args) { try { FileInputStream dis = new FileInputStream("c:\\" + args[10]); } catch(FileNotFoundException fnf) { System.out.println("Error: Operation could not be performed"); } //sanitized message } } |
...