public class AbortedByHookException extends GitAPIException
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
hookName
The hook that caused this exception.
|
private int |
returnCode
The process result.
|
private static long |
serialVersionUID |
Constructor and Description |
---|
AbortedByHookException(java.lang.String message,
java.lang.String hookName,
int returnCode)
Constructor for AbortedByHookException
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getHookName()
Get hook name
|
java.lang.String |
getMessage() |
int |
getReturnCode()
Get return code
|
private static final long serialVersionUID
private final java.lang.String hookName
private final int returnCode
public AbortedByHookException(java.lang.String message, java.lang.String hookName, int returnCode)
message
- The error details.hookName
- The name of the hook that interrupted the command, must not be
null.returnCode
- The return code of the hook process that has been run.public java.lang.String getHookName()
public int getReturnCode()
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable