InvalidTelnetOptionException
Date: 2016-06-23

org.apache.commons.net.telnet

## Class InvalidTelnetOptionException

- java.lang.Object
- - java.lang.Throwable
  - - java.lang.Exception
    - - org.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.
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `InvalidTelnetOptionException(java.lang.String message, int optcode)` Constructor for the exception.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.lang.String` | `getMessage()` Gets the error message of ths exception.

    - ### Methods inherited from class java.lang.Throwable

      `addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

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

      Overrides:
        `getMessage` in class `java.lang.Throwable`
      Returns:
        the error message.