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 Details

    • RenameFailedException

      public RenameFailedException(String src, String dest, Throwable cause)
    • RenameFailedException

      public RenameFailedException(String src, String dest, String error)
    • RenameFailedException

      public RenameFailedException(org.apache.hadoop.fs.Path src, org.apache.hadoop.fs.Path optionalDest, String error)
  • Method Details

    • getExitCode

      public boolean getExitCode()
    • withExitCode

      public RenameFailedException withExitCode(boolean code)
      Set the exit code.
      Parameters:
      code - exit code to raise
      Returns:
      the exception