Class FilterFailedException

    • Constructor Detail

      • 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 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