public class ProtocolViolationException
extends java.lang.Exception
ProtocolEncoder
cannot understand or
failed to validate the specified message, or when ProtocolDecoder
cannot understand or failed to validate the specified ByteBuffer
content.Constructor and Description |
---|
ProtocolViolationException()
Constructs a new instance.
|
ProtocolViolationException(java.lang.String message)
Constructs a new instance with the specified message.
|
ProtocolViolationException(java.lang.String message,
java.lang.Throwable cause)
Constructs a new instance with the specified message and the specified
cause.
|
ProtocolViolationException(java.lang.Throwable cause)
Constructs a new instance with the specified cause.
|
Modifier and Type | Method and 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.
|
public ProtocolViolationException()
public ProtocolViolationException(java.lang.String message)
public ProtocolViolationException(java.lang.Throwable cause)
public ProtocolViolationException(java.lang.String message, java.lang.Throwable cause)
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public java.lang.String getHexdump()
public void setHexdump(java.lang.String hexdump)