FileDocCategorySizeDatePackage
InvalidTelnetOptionException.javaAPI DocApache Commons NET 1.4.1 API1567Sat Dec 03 10:05:48 GMT 2005org.apache.commons.net.telnet

InvalidTelnetOptionException

public class InvalidTelnetOptionException extends 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

Fields Summary
private int
optionCode
Option code
private String
msg
Error message
Constructors Summary
public InvalidTelnetOptionException(String message, int optcode)
Constructor for the exception.

param
message - Error message.
param
optcode - Option code.


                        
        
    
        optionCode = optcode;
        msg = message;
    
Methods Summary
public java.lang.StringgetMessage()
Gets the error message of ths exception.

return
the error message.

        return (msg + ": " + optionCode);