Package org.buildobjects.process
Class ExternalProcessFailureException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.buildobjects.process.ExternalProcessFailureException
- All Implemented Interfaces:
Serializable
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 Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Method Details
-
getMessage
- Overrides:
getMessagein classThrowable
-
getCommand
Deprecated.Use getCommandLine- Returns:
- the command that was executed
-
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
- Returns:
- the output on stderr
-
getTime
public long getTime()- Returns:
- the execution time until the process failed
-