|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.io.IOException
org.apache.hadoop.fs.PathIOException
public class PathIOException
Exceptions based on standard posix/linux style exceptions for path related errors. Returns an exception with the format "path: standard error string". This exception corresponds to Error Input/ouput(EIO)
| Constructor Summary | |
|---|---|
|
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 |
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PathIOException(String path)
path - for the exception
public PathIOException(String path,
Throwable cause)
path - for the exceptioncause - a throwable to extract the error message
public PathIOException(String path,
String error)
path - for the exceptionerror - custom string to use an the error text
protected PathIOException(String path,
String error,
Throwable cause)
| Method Detail |
|---|
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 operation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||