public class FileNotFoundException extends IOException
Constructor and Description |
---|
FileNotFoundException()
Initializes a new instance of the System.IO.FileNotFoundException class with its message string set to a system-supplied message.
|
FileNotFoundException(java.lang.String message)
Initializes a new instance of the System.IO.FileNotFoundException class with its message string set to message.
|
FileNotFoundException(java.lang.String message,
java.lang.String fileName)
Initializes a new instance of the System.IO.FileNotFoundException class with its message string set to message, specifying the file name that cannot be found.
|
FileNotFoundException(java.lang.String message,
java.lang.String fileName,
java.lang.Throwable innerException) |
FileNotFoundException(java.lang.String message,
java.lang.Throwable innerException)
Initializes a new instance of the System.IO.FileNotFoundException class with a specified error message and a reference to the inner exception that is the cause of this exception.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFileName() |
public FileNotFoundException()
public FileNotFoundException(java.lang.String message)
message
- A description of the error. The content of message is intended to be understood by humans. The caller of this constructor is required to ensure that this string has been localized for the current system culture.public FileNotFoundException(java.lang.String message, java.lang.String fileName)
message
- A String that describes the error. The content of message is intended to be understood by humans. The caller of this constructor is required to ensure that this string has been localized for the current system culture.fileName
- A String containing the full name of the file with the invalid image.public FileNotFoundException(java.lang.String message, java.lang.String fileName, java.lang.Throwable innerException)
message
- The error message that explains the reason for the exception.fileName
- A String containing the full name of the file with the invalid image.innerException
- The exception that is the cause of the current exception. If the innerException parameter is not null, the current exception is raised in a catch block that handles the inner exception.public FileNotFoundException(java.lang.String message, java.lang.Throwable innerException)
message
- A String that describes the error. The content of message is intended to be understood by humans. The caller of this constructor is required to ensure that this string has been localized for the current system culture.innerException
- The exception that is the cause of the current exception. If the innerException parameter is not null, the current exception is raised in a catch block that handles the inner exception.