public class CommandTimeoutException extends TimeoutException
The message contains detailed information about the command that ran, the execution system that ran it, and the output of the command until the timeout. This information is also available programmatically via getter methods.
Constructor and Description |
---|
CommandTimeoutException(TerminatedCommand failed,
long timeout,
TimeUnit unit) |
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 until the time out.
|
CommandResult |
getResult()
Returns the result of executing the command until the timeout.
|
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 CommandTimeoutException(TerminatedCommand failed, long timeout, TimeUnit unit)
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