CHAPTER 22: The Package java.io Previous
Previous
Java Language
Java Language
Index
Index
Next
Next

22.29 The Class java.io.FileNotFoundException

22.29.1 FileNotFoundException , 22.29.2 FileNotFoundException

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);
}


22.29.1 FileNotFoundException

public FileNotFoundException()

This constructor initializes a newly created FileNotFoundException with null as its error message string.


22.29.2 FileNotFoundException

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).

Top© 1996 Sun Microsystems, Inc. All rights reserved.