Class RecoverableProtocolDecoderException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.mina.filter.codec.ProtocolCodecException
org.apache.mina.filter.codec.ProtocolDecoderException
org.apache.mina.filter.codec.RecoverableProtocolDecoderException
- All Implemented Interfaces:
Serializable
A special exception that tells the
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.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreate a new RecoverableProtocolDecoderException instanceCreate a new RecoverableProtocolDecoderException instanceRecoverableProtocolDecoderException(String message, Throwable cause) Create a new RecoverableProtocolDecoderException instanceCreate a new RecoverableProtocolDecoderException instance -
Method Summary
Methods inherited from class ProtocolDecoderException
getHexdump, getMessage, setHexdumpMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
RecoverableProtocolDecoderException
public RecoverableProtocolDecoderException()Create a new RecoverableProtocolDecoderException instance -
RecoverableProtocolDecoderException
Create a new RecoverableProtocolDecoderException instance- Parameters:
message- The error message
-
RecoverableProtocolDecoderException
Create a new RecoverableProtocolDecoderException instance- Parameters:
cause- The original exception
-
RecoverableProtocolDecoderException
-