org.apache.commons.net.telnet

Class 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.

Constructor Summary

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

Method Summary

@Override
String getMessage()
Gets the error message of ths exception.

Constructor Details

InvalidTelnetOptionException

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

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

Method Details

String getMessage

public @Override String getMessage()
Gets the error message of ths exception.

Returns:
the error message.