public class PathIOException extends IOException
| Modifier | Constructor and Description | 
|---|---|
  | 
PathIOException(String path)
Constructor a generic I/O error exception 
 | 
  | 
PathIOException(String path,
               String error)
Avoid using this method. 
 | 
protected  | 
PathIOException(String path,
               String error,
               Throwable cause)  | 
  | 
PathIOException(String path,
               Throwable cause)
Appends the text of a Throwable to the default error message 
 | 
| Modifier and Type | Method and Description | 
|---|---|
String | 
getMessage()
Format:
 cmd: {operation} `path' {to `target'}: error string 
 | 
Path | 
getPath()  | 
Path | 
getTargetPath()  | 
void | 
setOperation(String operation)
Optional operation that will preface the path 
 | 
void | 
setTargetPath(String targetPath)
Optional path if the exception involved two paths, ex. 
 | 
PathIOException | 
withFullyQualifiedPath(String fqPath)  | 
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic PathIOException(String path)
path - for the exceptionpublic PathIOException(String path, Throwable cause)
path - for the exceptioncause - a throwable to extract the error messagepublic PathIOException(String path, String error)
path - for the exceptionerror - custom string to use an the error textpublic PathIOException withFullyQualifiedPath(String fqPath)
public String getMessage()
getMessage in class Throwablepublic Path getPath()
public Path getTargetPath()
public void setOperation(String operation)
operation - a stringpublic void setTargetPath(String targetPath)
targetPath - the of the operationCopyright © 2018 Apache Software Foundation. All Rights Reserved.