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:
java.io.Serializable
public class FilterFailedException extends GitAPIException
Exception thrown when the execution of a filter command failed- Since:
- 4.2
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
filterCommand
private java.lang.String
path
private int
rc
private static long
serialVersionUID
private java.lang.String
stderr
private byte[]
stdout
-
Constructor Summary
Constructors Constructor Description FilterFailedException(int rc, java.lang.String filterCommand, java.lang.String path, byte[] stdout, java.lang.String stderr)
Thrown if a filter command returns a non-zero return codeFilterFailedException(java.lang.Exception cause, java.lang.String filterCommand, java.lang.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 java.lang.String
getError()
Get errorjava.lang.String
getFilterCommand()
Get filter commandbyte[]
getOutput()
Get outputjava.lang.String
getPath()
Get pathint
getReturnCode()
Get return code
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
filterCommand
private java.lang.String filterCommand
-
path
private java.lang.String path
-
stdout
private byte[] stdout
-
stderr
private java.lang.String stderr
-
rc
private int rc
-
-
Constructor Detail
-
FilterFailedException
public FilterFailedException(java.lang.Exception cause, java.lang.String filterCommand, java.lang.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, java.lang.String filterCommand, java.lang.String path, byte[] stdout, java.lang.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 java.lang.String getFilterCommand()
Get filter command- Returns:
- the filterCommand
-
getPath
public java.lang.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 java.lang.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
-
-