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 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
-
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
-
getPath
-
getOutput
public byte[] getOutput()Get output- Returns:
- the output generated by the filter command. Might be truncated to limit memory consumption.
-
getError
-
getReturnCode
public int getReturnCode()Get return code- Returns:
- the return code returned by the filter command
-