Class ExternalProcessFailureException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.buildobjects.process.ExternalProcessFailureException
All Implemented Interfaces:
Serializable

public class ExternalProcessFailureException extends RuntimeException
Signals the failure of an external process that returned a non zero exit code. It captures additional information such as the output on stderr.
See Also:
  • Method Details

    • getMessage

      public String getMessage()
      Overrides:
      getMessage in class Throwable
    • getCommand

      @Deprecated public String getCommand()
      Deprecated.
      Use getCommandLine
      Returns:
      the command that was executed
    • getCommandLine

      public String getCommandLine()
      Returns:
      a command line to invoke this process including args and using basic shell escaping.
    • getExitValue

      public int getExitValue()
      Returns:
      the actual exit value
    • getStderr

      public String getStderr()
      Returns:
      the output on stderr
    • getTime

      public long getTime()
      Returns:
      the execution time until the process failed