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:
Serializable
- Direct Known Subclasses:
RecoverableProtocolDecoderException
public class ProtocolDecoderException extends ProtocolCodecException
An exception that is thrown whenProtocolDecoder
cannot understand or failed to validate the specifiedIoBuffer
content.- Author:
- Apache MINA Project
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getHexdump()
String
getMessage()
void
setHexdump(String hexdump)
Sets the hexdump of the unknown message part.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
ProtocolDecoderException
public ProtocolDecoderException()
Constructs a new instance.
-
ProtocolDecoderException
public ProtocolDecoderException(String message)
Constructs a new instance with the specified message.- Parameters:
message
- The detail message
-
ProtocolDecoderException
public ProtocolDecoderException(Throwable cause)
Constructs a new instance with the specified cause.- Parameters:
cause
- The Exception's cause
-
-
Method Detail
-
getMessage
public String getMessage()
- Overrides:
getMessage
in classThrowable
- Returns:
- the message and the hexdump of the unknown part.
-
getHexdump
public String getHexdump()
- Returns:
- the hexdump of the unknown message part.
-
setHexdump
public void setHexdump(String hexdump)
Sets the hexdump of the unknown message part.- Parameters:
hexdump
- The hexadecimal String representation of the message
-
-