public class FileMissingException extends IOException
This exception may denote either an error of the caller (in case it previously created the
specified file) or an external modification to the FileStore
resulting in the removal
of a file previously created, which thus becomes missing. Mandatory property
getFilename()
provides the name of the missing file.
Note: a specific exception has been introduced as the existing
java.io.FileNotFoundException
and java.nio.file.NoSuchFileException
are
strictly related to JDK classes and the access to files on an OS-managed filesystem.
Constructor and Description |
---|
FileMissingException(String filename,
String message)
Creates a new instance with the filename and additional error message specified.
|
FileMissingException(String filename,
String message,
Throwable cause)
Creates a new instance with the filename, additional error message and cause specified.
|
Modifier and Type | Method and Description |
---|---|
String |
getFilename()
Returns the filename identifying the missing file.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public FileMissingException(String filename, @Nullable String message)
filename
- the filename identifying the missing filemessage
- an optional message providing additional information, which is concatenated to
an auto-generated message reporting the filename of the missing fileFileMissingException(String, String, Throwable)
public FileMissingException(String filename, @Nullable String message, @Nullable Throwable cause)
filename
- the filename identifying the missing filemessage
- an optional message providing additional information, which is concatenated to
an auto-generated message reporting the filename of the missing filecause
- an optional cause of this exceptionpublic final String getFilename()
Copyright © 2015–2016 FBK-irst. All rights reserved.