- 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
public class FilterFailedException extends GitAPIException
Exception thrown when the execution of a filter command failed- Since:
- 4.2
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FilterFailedException(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetError()Get errorStringgetFilterCommand()Get filter commandbyte[]getOutput()Get outputStringgetPath()Get pathintgetReturnCode()Get return code-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
FilterFailedException
public FilterFailedException(Exception cause, String filterCommand, String path)
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 Detail
-
getFilterCommand
public String getFilterCommand()
Get filter command- Returns:
- the filterCommand
-
getPath
public String 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
public String 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
-
-