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 FileSystemDriver.newInputStream(Path, Set)
input stream} or an FileSystemDriver.newOutputStream(Path, Set)
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.
As this is a filesystem level error, and not an I/O error, this exception
extends FileSystemException
and not IOException
.
Constructor and Description |
---|
IsDirectoryException(String file) |
IsDirectoryException(String file,
String other,
String reason) |
getFile, getMessage, getOtherFile, getReason
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString