org.apache.mina.filter.codec

Class ProtocolDecoderException


public class ProtocolDecoderException
extends ProtocolCodecException

An exception that is thrown when ProtocolDecoder cannot understand or failed to validate the specified ByteBuffer content.

Constructor Summary

ProtocolDecoderException()
Constructs 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.
ProtocolDecoderException(Throwable cause)
Constructs a new instance with the specified cause.

Method Summary

String
getHexdump()
Returns the hexdump of the unknown message part.
String
getMessage()
Returns the message and the hexdump of the unknown part.
void
setHexdump(String hexdump)
Sets the hexdump of the unknown message part.

Constructor Details

ProtocolDecoderException

public ProtocolDecoderException()
Constructs a new instance.

ProtocolDecoderException

public ProtocolDecoderException(String message)
Constructs a new instance with the specified message.

ProtocolDecoderException

public ProtocolDecoderException(String message,
                                Throwable cause)
Constructs a new instance with the specified message and the specified cause.

ProtocolDecoderException

public ProtocolDecoderException(Throwable cause)
Constructs a new instance with the specified cause.

Method Details

getHexdump

public String getHexdump()
Returns the hexdump of the unknown message part.

getMessage

public String getMessage()
Returns the message and the hexdump of the unknown part.

setHexdump

public void setHexdump(String hexdump)
Sets the hexdump of the unknown message part.