Thursday, March 12, 2015

FileNotFoundException

java.io.FileNotFoundException

FileNotFoundException is described in the javadoc comments as:

Signals that an attempt to open the file denoted by a specified pathname has failed.

This exception will be thrown by the {link: FileInputStream}, {@link FileOutputStream}, and {link: 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.
author: unascribed version: 1.23, 12/19/03 since: JDK1.0

Where is this exception thrown?

Following, is a list of exception messages cross-referenced to the source code responsible for throwing them. Click on the method link to view the code and see how the exception is thrown.

  • FileNotFoundException is not thrown within any available source code.

How is this exception thrown?

The following sub-sections identify where this exception is thrown, and how (or why) the code is throwing the exception.

Any source code quoted in this section is subject to the Java Research License unless stated otherwise.

  • FileNotFoundException is not thrown within the available source code.

No comments:

Post a Comment