Package org.eclipse.jgit.errors
Class CommandFailedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.eclipse.jgit.errors.CommandFailedException
- All Implemented Interfaces:
Serializable
Thrown when an external command failed
- Since:
- 4.5
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private static final long
-
Constructor Summary
ConstructorsConstructorDescriptionCommandFailedException
(int returnCode, String message) Constructor for CommandFailedExceptionCommandFailedException
(int returnCode, String message, Throwable cause) Constructor for CommandFailedException -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
returnCode
private int returnCode
-
-
Constructor Details
-
CommandFailedException
Constructor for CommandFailedException- Parameters:
returnCode
- return code returned by the commandmessage
- error message
-
CommandFailedException
Constructor for CommandFailedException- Parameters:
returnCode
- return code returned by the commandmessage
- error messagecause
- exception causing this exception
-
-
Method Details
-
getReturnCode
public int getReturnCode()Get return code returned by the command- Returns:
- return code returned by the command
-