This exception will be thrown by the FileInputStream
, FileOutputStream
, and RandomAccessFile
constructors when a file
with the specified pathname does not exist. It will also be thrown by these
constructors if the file does exist but for some reason is inaccessible, for
example when an attempt is made to open a read-only file for writing.
Modifier and Type | Field and Description |
---|---|
private static final long |
Access | Constructor and Description |
---|---|
public | |
public | FileNotFoundException(String
the detail message. s)Constructs a |
private | FileNotFoundException(String path, String reason)
Constructs a |
serialVersionUID | back to summary |
---|---|
private static final long serialVersionUID Hides java. |
FileNotFoundException | back to summary |
---|---|
public FileNotFoundException() Constructs a |
FileNotFoundException | back to summary |
---|---|
public FileNotFoundException(String s) Constructs a
|
FileNotFoundException | back to summary |
---|---|
private FileNotFoundException(String path, String reason) Constructs a
|