|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception org.apache.mina.protocol.ProtocolViolationException
public class ProtocolViolationException
An exception that is thrown when ProtocolEncoder
cannot understand or
failed to validate the specified message, or when ProtocolDecoder
cannot understand or failed to validate the specified ByteBuffer
content.
Constructor Summary | |
---|---|
ProtocolViolationException()
Constructs a new instance. |
|
ProtocolViolationException(String message)
Constructs a new instance with the specified message. |
|
ProtocolViolationException(String message,
Throwable cause)
Constructs a new instance with the specified message and the specified cause. |
|
ProtocolViolationException(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. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ProtocolViolationException()
public ProtocolViolationException(String message)
public ProtocolViolationException(Throwable cause)
public ProtocolViolationException(String message, Throwable cause)
Method Detail |
---|
public String getMessage()
getMessage
in class Throwable
public String getHexdump()
public void setHexdump(String hexdump)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |