java.io.SerializableClosedIOException, PathAccessDeniedException, PathExistsException, PathNotFoundException, PathPermissionExceptionpublic class PathIOException
extends java.io.IOException
| Constructor | Description |
|---|---|
PathIOException(java.lang.String path) |
Constructor a generic I/O error exception
|
PathIOException(java.lang.String path,
java.lang.String error) |
Avoid using this method.
|
PathIOException(java.lang.String path,
java.lang.String error,
java.lang.Throwable cause) |
Use a subclass of PathIOException if possible.
|
PathIOException(java.lang.String path,
java.lang.Throwable cause) |
Appends the text of a Throwable to the default error message
|
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
getMessage() |
Format:
cmd: {operation} `path' {to `target'}: error string
|
Path |
getPath() |
|
Path |
getTargetPath() |
|
void |
setOperation(java.lang.String operation) |
Optional operation that will preface the path
|
void |
setTargetPath(java.lang.String targetPath) |
Optional path if the exception involved two paths, ex.
|
PathIOException |
withFullyQualifiedPath(java.lang.String fqPath) |
public PathIOException(java.lang.String path)
path - for the exceptionpublic PathIOException(java.lang.String path,
java.lang.Throwable cause)
path - for the exceptioncause - a throwable to extract the error messagepublic PathIOException(java.lang.String path,
java.lang.String error)
path - for the exceptionerror - custom string to use an the error textpublic PathIOException(java.lang.String path,
java.lang.String error,
java.lang.Throwable cause)
path - for the exceptionerror - custom string to use an the error textcause - cause of exception.public PathIOException withFullyQualifiedPath(java.lang.String fqPath)
public java.lang.String getMessage()
getMessage in class java.lang.Throwablepublic Path getPath()
public Path getTargetPath()
public void setOperation(java.lang.String operation)
operation - a stringpublic void setTargetPath(java.lang.String targetPath)
targetPath - the of the operationCopyright © 2008–2025 Apache Software Foundation. All rights reserved.