Class 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:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • filterCommand

      private String filterCommand
    • path

      private String path
    • stdout

      private byte[] stdout
    • stderr

      private String stderr
    • rc

      private int rc
  • Constructor Details

    • FilterFailedException

      public FilterFailedException(Exception cause, String filterCommand, String path)
      Thrown if during execution of filter command an exception occurred
      Parameters:
      cause - the exception
      filterCommand - the command which failed
      path - 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 code
      filterCommand - the command which failed
      path - the path processed by the filter
      stdout - the output the filter generated so far. This should be limited to reasonable size.
      stderr - the stderr output of the filter
  • Method Details

    • 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