Package org.eclipse.jgit.api.errors
Class FilterFailedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.eclipse.jgit.api.errors.GitAPIException
org.eclipse.jgit.api.errors.FilterFailedException
- All Implemented Interfaces:
Serializable
Exception thrown when the execution of a filter command failed
- Since:
- 4.2
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFilterFailedException
(int rc, String filterCommand, String path, byte[] stdout, String stderr) Thrown if a filter command returns a non-zero return codeFilterFailedException
(Exception cause, String filterCommand, String path) Thrown if during execution of filter command an exception occurred -
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:
-
filterCommand
-
path
-
stdout
private byte[] stdout -
stderr
-
rc
private int rc
-
-
Constructor Details
-
FilterFailedException
Thrown if during execution of filter command an exception occurred- Parameters:
cause
- the exceptionfilterCommand
- the command which failedpath
- the path processed by the filter
-
FilterFailedException
public FilterFailedException(int rc, String filterCommand, String path, byte[] stdout, String stderr) Thrown if a filter command returns a non-zero return code- Parameters:
rc
- the return codefilterCommand
- the command which failedpath
- the path processed by the filterstdout
- the output the filter generated so far. This should be limited to reasonable size.stderr
- the stderr output of the filter
-
-
Method Details
-
getFilterCommand
Get filter command- Returns:
- the filterCommand
-
getPath
Get path- Returns:
- the path of the file processed by the filter command
-
getOutput
public byte[] getOutput()Get output- Returns:
- the output generated by the filter command. Might be truncated to limit memory consumption.
-
getError
Get error- Returns:
- the error output returned by the filter command
-
getReturnCode
public int getReturnCode()Get return code- Returns:
- the return code returned by the filter command
-