Class ToolExecutorResult


  • public class ToolExecutorResult
    extends Object
    The class define a result on execution tool.
    Since:
    2.0
    Author:
    Sandrine Perrin
    • Constructor Detail

      • ToolExecutorResult

        public ToolExecutorResult​(List<String> commandLineTool,
                                  int exitValue)
        Public constructor, command line can not be null or empty
        Parameters:
        commandLineTool - the command line tool
        exitValue - exit code
      • ToolExecutorResult

        public ToolExecutorResult​(List<String> commandLineTool,
                                  Throwable e)
        Public constructor, command line can not be null or empty
        Parameters:
        commandLineTool - the command line tool
        e - exception
    • Method Detail

      • getException

        public Throwable getException()
        Gets the exception.
        Returns:
        the exception
      • isException

        public boolean isException()
        Test if an exception has been thrown.
        Returns:
        false, if successful
      • getExitValue

        public int getExitValue()
        Gets the exit value.
        Returns:
        the exit value
      • getCommandLine

        public List<String> getCommandLine()
        Gets the command line as a list of string arguments.
        Returns:
        the command line as a list of string arguments
      • getCommandLineAsString

        public String getCommandLineAsString()
        Gets the command line as a String.
        Returns:
        the command line as a String