Module JavaProc

Class 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:
    Serialized Form
    • Method Detail

      • 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