com.jscape.inet.ssh

## Class SshTaskTimeoutException

- java.lang.Object
- - java.lang.Throwable
  - - java.lang.Exception
    - - com.jscape.inet.ssh.SshException
      - - com.jscape.inet.ssh.SshTaskTimeoutException

- All Implemented Interfaces:
    java.io.Serializable

      public class SshTaskTimeoutException
      extends SshException

  A subclass of TelnetException, this exception is thrown by a TelnetSession instance when using the TelnetSession#send or TelnetSession#sendWait methods and the TelnetTask exceeds the maximum defined timeout waiting for the end prompt.
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `SshTaskTimeoutException(SshTask task)` Constructs a new SshTaskTimeoutException instance

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `SshTask` | `getTask()` Gets the SshTask that timed out

    - ### Methods inherited from class com.jscape.inet.ssh.SshException

      `wrap`

    - ### Methods inherited from class java.lang.Throwable

      `addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString`

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### SshTaskTimeoutException

          public SshTaskTimeoutException(SshTask task)

      Constructs a new SshTaskTimeoutException instance
      Parameters:
        `task` - the SshTask that timed out
      See Also:
        `SshTask`

  - ### Method Detail

    - #### getTask

          public SshTask getTask()

      Gets the SshTask that timed out
      Returns:
        the SshTask
      See Also:
        `SshTask`

Copyright © JSCAPE LLC. 1999-2021. All Rights Reserved