Class CommandFailedException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.eclipse.jgit.errors.CommandFailedException
All Implemented Interfaces:
Serializable

public class CommandFailedException extends Exception
Thrown when an external command failed
Since:
4.5
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • returnCode

      private int returnCode
  • Constructor Details

    • CommandFailedException

      public CommandFailedException(int returnCode, String message)
      Constructor for CommandFailedException
      Parameters:
      returnCode - return code returned by the command
      message - error message
    • CommandFailedException

      public CommandFailedException(int returnCode, String message, Throwable cause)
      Constructor for CommandFailedException
      Parameters:
      returnCode - return code returned by the command
      message - error message
      cause - exception causing this exception
  • Method Details

    • getReturnCode

      public int getReturnCode()
      Get return code returned by the command
      Returns:
      return code returned by the command