public final class IsDirectoryException extends FileSystemException
Strangely enough, this exception is not defined by the JDK; this package
defines it as inheriting FileSystemException (which itself inherits
IOException) to account for situations where an operation is
performed on a path which is a directory where it should not be; the primary
candidates for such an exception are an attempt to open an input stream or an
output stream
on a path which is a directory: such methods make no sense if the path is
considered to be a directory by the filesystem.
| Constructor and Description |
|---|
IsDirectoryException(String file)
Constructs an instance of this class.
|
IsDirectoryException(String file,
String other,
String reason)
Constructs an instance of this class.
|
getFile, getMessage, getOtherFile, getReasonaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic IsDirectoryException(String file)
file - a string identifying the file or null if not known.public IsDirectoryException(String file, String other, String reason)
file - a string identifying the file or null if not known.other - a string identifying the other file or null if there
isn't another file or if not knownreason - a reason message with additional information or null