A FileNotFoundException is thrown to indicate that no actual file could be
opened for a specified path name. See constructors FileInputStream (§22.4.1,
§22.4.2) and FileOutputStream (§22.16.1, §22.16.2).
public classFileNotFoundExceptionextends IOException { publicFileNotFoundException(); publicFileNotFoundException(String s); }
22.29.1 public FileNotFoundException()
This constructor initializes a newly created FileNotFoundException with null
as its error message string.
22.29.2 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 (§20.22.3).