SSH Factory

com.jscape.inet.telnet
Class TelnetTaskTimeoutException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.jscape.inet.telnet.TelnetException
              extended by com.jscape.inet.telnet.TelnetTaskTimeoutException
All Implemented Interfaces:
ExceptionWrapper, java.io.Serializable

public class TelnetTaskTimeoutException
extends TelnetException

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 either the start prompt or end prompt.

See Also:
Serialized Form

Constructor Summary
TelnetTaskTimeoutException(TelnetTask task)
          Constructs a new TelnetTaskTimeoutException instance
 
Method Summary
 TelnetTask getTask()
          Gets the TelnetTask that timed out
 
Methods inherited from class com.jscape.inet.telnet.TelnetException
getException
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TelnetTaskTimeoutException

public TelnetTaskTimeoutException(TelnetTask task)
Constructs a new TelnetTaskTimeoutException instance

Parameters:
task - the TelnetTask that timed out
See Also:
TelnetTask
Method Detail

getTask

public TelnetTask getTask()
Gets the TelnetTask that timed out

Returns:
the TelnetTask
See Also:
TelnetTask

SSH Factory

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