org.apache.commons.net.telnet
Class InvalidTelnetOptionException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.apache.commons.net.telnet.InvalidTelnetOptionException
All Implemented Interfaces:
java.io.Serializable

public class InvalidTelnetOptionException
extends java.lang.Exception

The InvalidTelnetOptionException is the exception that is thrown whenever a TelnetOptionHandler with an invlaid option code is registered in TelnetClient with addOptionHandler.

Author:
Bruno D'Avanzo
See Also:
Serialized Form

Field Summary
private  java.lang.String msg
          Error message
private  int optionCode
          Option code
 
Fields inherited from class java.lang.Exception
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
InvalidTelnetOptionException(java.lang.String message, int optcode)
          Constructor for the exception.
 
Method Summary
 java.lang.String getMessage()
          Gets the error message of ths exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

optionCode

private int optionCode
Option code


msg

private java.lang.String msg
Error message

Constructor Detail

InvalidTelnetOptionException

public InvalidTelnetOptionException(java.lang.String message,
                                    int optcode)
Constructor for the exception.

Parameters:
message - - Error message.
optcode - - Option code.
Method Detail

getMessage

public java.lang.String getMessage()
Gets the error message of ths exception.

Returns:
the error message.