Class InvalidTelnetOptionException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.commons.net.telnet.InvalidTelnetOptionException
All Implemented Interfaces:
Serializable

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.
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • optionCode

      private final int optionCode
      Option code
    • msg

      private final String msg
      Error message
  • Constructor Details

    • InvalidTelnetOptionException

      public InvalidTelnetOptionException(String message, int optcode)
      Constructor for the exception.
      Parameters:
      message - - Error message.
      optcode - - Option code.
  • Method Details

    • getMessage

      public String getMessage()
      Gets the error message of ths exception.
      Overrides:
      getMessage in class Throwable
      Returns:
      the error message.