public class CommandException extends RuntimeException
The message contains detailed information about the command that ran, the execution system that ran it, and the output of the command. This information is also available programmatically via getter methods.
Constructor and Description |
---|
CommandException(TerminatedCommand failed) |
Modifier and Type | Method and Description |
---|---|
ImmutableList<String> |
getArguments()
Returns the arguments of the failed command.
|
String |
getExecutable()
Returns the failed command.
|
String |
getMessage()
Returns a description of the executed command and how it failed.
|
CommandResult |
getResult()
Returns the result of executing the command.
|
URI |
getUri()
Returns the URI of the system that executed the command.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public CommandException(TerminatedCommand failed)
public String getExecutable()
public ImmutableList<String> getArguments()
public URI getUri()
public CommandResult getResult()
public String getMessage()
The description spans multiple lines and includes the:
getMessage
in class Throwable