Package org.apache.mina.filter.codec
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:
java.io.Serializable
public class RecoverableProtocolDecoderException extends ProtocolDecoderException
A special exception that tells theProtocolDecodercan keep decoding even after this exception is thrown.Once
ProtocolCodecFiltercatches any other type of exception thanRecoverableProtocolDecoderException, it stops calling theProtocolDecoder.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
RecoverableProtocolDecoderExceptionis thrown, it doesn't stop immediately but keeps calling theProtocolDecoderas long as the position of the read buffer changes.RecoverableProtocolDecoderExceptionis useful for a robustProtocolDecoderthat can continue decoding even after any protocol violation.- Author:
- Apache MINA Project
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RecoverableProtocolDecoderException()Create a new RecoverableProtocolDecoderException instanceRecoverableProtocolDecoderException(java.lang.String message)Create a new RecoverableProtocolDecoderException instanceRecoverableProtocolDecoderException(java.lang.String message, java.lang.Throwable cause)Create a new RecoverableProtocolDecoderException instanceRecoverableProtocolDecoderException(java.lang.Throwable cause)Create a new RecoverableProtocolDecoderException instance
-
Method Summary
-
Methods inherited from class org.apache.mina.filter.codec.ProtocolDecoderException
getHexdump, getMessage, setHexdump
-
-
-
-
Constructor Detail
-
RecoverableProtocolDecoderException
public RecoverableProtocolDecoderException()
Create a new RecoverableProtocolDecoderException instance
-
RecoverableProtocolDecoderException
public RecoverableProtocolDecoderException(java.lang.String message)
Create a new RecoverableProtocolDecoderException instance- Parameters:
message- The error message
-
RecoverableProtocolDecoderException
public RecoverableProtocolDecoderException(java.lang.Throwable cause)
Create a new RecoverableProtocolDecoderException instance- Parameters:
cause- The original exception
-
RecoverableProtocolDecoderException
public RecoverableProtocolDecoderException(java.lang.String message, java.lang.Throwable cause)Create a new RecoverableProtocolDecoderException instance- Parameters:
message- The error messagecause- The original exception
-
-