- All Implemented Interfaces:
public class FileNotFoundException extends IOException
This exception will be thrown by the
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.
- See Also:
- Serialized Form
public FileNotFoundException()Constructs a
nullas its error detail message.
public FileNotFoundException(String s)Constructs a
FileNotFoundExceptionwith the specified detail message. The string
scan be retrieved later by the
method of class
s- the detail message.