public class RecoverableProtocolDecoderException extends ProtocolDecoderException
ProtocolDecoder
can keep
decoding even after this exception is thrown.
Once ProtocolCodecFilter
catches any other type of exception
than RecoverableProtocolDecoderException
, it stops calling
the ProtocolDecoder.decode(org.apache.mina.core.session.IoSession,
org.apache.mina.core.buffer.IoBuffer, ProtocolDecoderOutput)
immediately and fires an exceptionCaught event.
On the other hand, if RecoverableProtocolDecoderException
is thrown,
it doesn't stop immediately but keeps calling the ProtocolDecoder
as long as the position of the read buffer changes.
RecoverableProtocolDecoderException
is useful for a robust
ProtocolDecoder
that can continue decoding even after any
protocol violation.
Constructor and Description |
---|
RecoverableProtocolDecoderException()
Create a new RecoverableProtocolDecoderException instance
|
RecoverableProtocolDecoderException(String message)
Create a new RecoverableProtocolDecoderException instance
|
RecoverableProtocolDecoderException(String message,
Throwable cause)
Create a new RecoverableProtocolDecoderException instance
|
RecoverableProtocolDecoderException(Throwable cause)
Create a new RecoverableProtocolDecoderException instance
|
getHexdump, getMessage, setHexdump
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public RecoverableProtocolDecoderException()
public RecoverableProtocolDecoderException(String message)
message
- The error messagepublic RecoverableProtocolDecoderException(Throwable cause)
cause
- The original exceptionCopyright © 2004–2021 Apache MINA Project. All rights reserved.