public class AbortedByHookException extends GitAPIException
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
hookName
The hook that caused this exception.
|
private java.lang.String |
hookStdErr
The stderr output of the hook.
|
private int |
returnCode
The process result.
|
private static long |
serialVersionUID |
Constructor and Description |
---|
AbortedByHookException(java.lang.String hookStdErr,
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 |
getHookStdErr()
Get the stderr output of the hook.
|
int |
getReturnCode()
Get return code
|
private static final long serialVersionUID
private final java.lang.String hookName
private final int returnCode
private final java.lang.String hookStdErr
public AbortedByHookException(java.lang.String hookStdErr, java.lang.String hookName, int returnCode)
hookStdErr
- The error details from the stderr output of the hookhookName
- 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 getHookStdErr()