public class CommandLineException extends IOException
| Constructor and Description |
|---|
CommandLineException(String detailMessage,
String[] commandLine,
String commandOutput,
int exitValue) |
| Modifier and Type | Method and Description |
|---|---|
String[] |
getCommandLine() |
String |
getCommandOutput() |
int |
getExitValue() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic CommandLineException(String detailMessage, String[] commandLine, String commandOutput, int exitValue)
detailMessage - the detail message, e.g. "Program failed" or whatevercommandLine - the command and arguments that were executed, e.g.
{ "ls", "-l" }commandOutput - the text error message that was reported by the command-line
program. It is common for this message to be more than one
line.exitValue - the exit value that was returned by the command-line program.Copyright © 2016 The Apache Software Foundation. All rights reserved.