| CHAPTER 22: The Package java.io |
Previous |
Java Language |
Index |
Next |
A FileNotFoundException is thrown to indicate that no actual file could be opened for a specified path name. See constructors FileInputStream (S22.4.1, S22.4.2) and FileOutputStream (S22.16.1, S22.16.2).
public class FileNotFoundException extends IOException {
public FileNotFoundException();
public FileNotFoundException(String s);
}
public FileNotFoundException()
This constructor initializes a newly created FileNotFoundException with null as its error message string.
public FileNotFoundException(String s)
This constructor initializes a newly created FileNotFoundException by saving a reference to the error message string s for later retrieval by the getMessage method (S20.22.3).
| © 1996 Sun Microsystems, Inc. All rights reserved. |