Class SshCommandException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
io.gem.api.SshCommandException
- All Implemented Interfaces:
Serializable
Host-tagged SSH command failure retaining bounded command diagnostics.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSshCommandException(String host, SshResponse response, boolean timeout, IOException cause) Create a remote command failure. -
Method Summary
Modifier and TypeMethodDescriptiongetHost()Return the remote host.Return partial bounded command output.booleanCheck whether the command deadline expired.Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
SshCommandException
Create a remote command failure.- Parameters:
host- remote hostresponse- partial bounded stdout and stderrtimeout- whether command execution timed outcause- underlying SSH failure
-
-
Method Details
-
getHost
-
getResponse
Return partial bounded command output.- Returns:
- command response populated before transport failure
-
isTimeout
public boolean isTimeout()Check whether the command deadline expired.- Returns:
- true for a command timeout
-