Package org.apache.hadoop.fs.s3a
Class RenameFailedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.apache.hadoop.fs.PathIOException
org.apache.hadoop.fs.s3a.RenameFailedException
- All Implemented Interfaces:
Serializable
public class RenameFailedException
extends org.apache.hadoop.fs.PathIOException
Error to indicate that a specific rename failed.
The exit code defines the exit code to be returned in the
rename()
call.
Target path is set to destination.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRenameFailedException(String src, String dest, String error) RenameFailedException(String src, String dest, Throwable cause) RenameFailedException(org.apache.hadoop.fs.Path src, org.apache.hadoop.fs.Path optionalDest, String error) -
Method Summary
Methods inherited from class org.apache.hadoop.fs.PathIOException
getMessage, getPath, getTargetPath, setOperation, setTargetPath, withFullyQualifiedPathMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
RenameFailedException
-
RenameFailedException
-
RenameFailedException
public RenameFailedException(org.apache.hadoop.fs.Path src, org.apache.hadoop.fs.Path optionalDest, String error)
-
-
Method Details
-
getExitCode
public boolean getExitCode() -
withExitCode
Set the exit code.- Parameters:
code- exit code to raise- Returns:
- the exception
-