- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.simtechdata.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:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StringgetCommand()Deprecated.Use getCommandLineStringgetCommandLine()intgetExitValue()StringgetMessage()StringgetStderr()longgetTime()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
getMessage
public String getMessage()
- Overrides:
getMessagein classThrowable
-
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
-
-