Class ProtocolDecoderException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.mina.filter.codec.ProtocolCodecException
org.apache.mina.filter.codec.ProtocolDecoderException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
RecoverableProtocolDecoderException
An exception that is thrown when
ProtocolDecoder
cannot understand or failed to validate the specified IoBuffer
content.- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new instance.ProtocolDecoderException(String message) Constructs a new instance with the specified message.ProtocolDecoderException(String message, Throwable cause) Constructs a new instance with the specified message and the specified cause.Constructs a new instance with the specified cause. -
Method Summary
Modifier and TypeMethodDescriptionvoidsetHexdump(String hexdump) Sets the hexdump of the unknown message part.Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
hexdump
-
-
Constructor Details
-
ProtocolDecoderException
public ProtocolDecoderException()Constructs a new instance. -
ProtocolDecoderException
Constructs a new instance with the specified message.- Parameters:
message- The detail message
-
ProtocolDecoderException
Constructs a new instance with the specified cause.- Parameters:
cause- The Exception's cause
-
ProtocolDecoderException
-
-
Method Details
-
getMessage
- Overrides:
getMessagein classThrowable- Returns:
- the message and the hexdump of the unknown part.
-
getHexdump
- Returns:
- the hexdump of the unknown message part.
-
setHexdump
Sets the hexdump of the unknown message part.- Parameters:
hexdump- The hexadecimal String representation of the message
-