Class SshCommandException

All Implemented Interfaces:
Serializable

public final class SshCommandException extends IOException
Host-tagged SSH command failure retaining bounded command diagnostics.
See Also:
  • Constructor Details

    • SshCommandException

      public SshCommandException(String host, SshResponse response, boolean timeout, IOException cause)
      Create a remote command failure.
      Parameters:
      host - remote host
      response - partial bounded stdout and stderr
      timeout - whether command execution timed out
      cause - underlying SSH failure
  • Method Details

    • getHost

      public String getHost()
      Return the remote host.
      Returns:
      remote host name or address
    • getResponse

      public SshResponse 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