Package 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:
Serializable
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 Summary
FieldsModifier and TypeFieldDescriptionprivate final String
Error messageprivate final int
Option codeprivate static final long
-
Constructor Summary
ConstructorsConstructorDescriptionInvalidTelnetOptionException
(String message, int optcode) Constructor for the exception. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
optionCode
private final int optionCodeOption code -
msg
Error message
-
-
Constructor Details
-
InvalidTelnetOptionException
Constructor for the exception.- Parameters:
message
- - Error message.optcode
- - Option code.
-
-
Method Details
-
getMessage
Gets the error message of ths exception.- Overrides:
getMessage
in classThrowable
- Returns:
- the error message.
-