Class 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 code
      FilterFailedException​(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 error
      java.lang.String getFilterCommand()
      Get filter command
      byte[] getOutput()
      Get output
      java.lang.String getPath()
      Get path
      int getReturnCode()
      Get return code
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • 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 exception
        filterCommand - the command which failed
        path - 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 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 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