Package org.apache.mina.filter.codec
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:
java.io.Serializable
public class ProtocolDecoderException extends ProtocolCodecException
An exception that is thrown whenProtocolDecoder
cannot understand or failed to validate the specifiedByteBuffer
content.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ProtocolDecoderException()
Constructs a new instance.ProtocolDecoderException(java.lang.String message)
Constructs a new instance with the specified message.ProtocolDecoderException(java.lang.String message, java.lang.Throwable cause)
Constructs a new instance with the specified message and the specified cause.ProtocolDecoderException(java.lang.Throwable cause)
Constructs a new instance with the specified cause.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getHexdump()
Returns the hexdump of the unknown message part.java.lang.String
getMessage()
Returns the message and the hexdump of the unknown part.void
setHexdump(java.lang.String hexdump)
Sets the hexdump of the unknown message part.
-
-
-
Constructor Detail
-
ProtocolDecoderException
public ProtocolDecoderException()
Constructs a new instance.
-
ProtocolDecoderException
public ProtocolDecoderException(java.lang.String message)
Constructs a new instance with the specified message.
-
ProtocolDecoderException
public ProtocolDecoderException(java.lang.Throwable cause)
Constructs a new instance with the specified cause.
-
ProtocolDecoderException
public ProtocolDecoderException(java.lang.String message, java.lang.Throwable cause)
Constructs a new instance with the specified message and the specified cause.
-
-
Method Detail
-
getMessage
public java.lang.String getMessage()
Returns the message and the hexdump of the unknown part.- Overrides:
getMessage
in classjava.lang.Throwable
-
getHexdump
public java.lang.String getHexdump()
Returns the hexdump of the unknown message part.
-
setHexdump
public void setHexdump(java.lang.String hexdump)
Sets the hexdump of the unknown message part.
-
-