- All Implemented Interfaces:
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
FileNotFoundExceptionpublic FileNotFoundException()Constructs a
nullas its error detail message.
FileNotFoundExceptionpublic FileNotFoundException(String s)Constructs a
FileNotFoundExceptionwith the specified detail message. The string
scan be retrieved later by the
Throwable.getMessage()method of class
s- the detail message.