Class NotSupportedOldVersionPDUException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.opends.server.replication.protocol.NotSupportedOldVersionPDUException
-
- All Implemented Interfaces:
Serializable
public class NotSupportedOldVersionPDUException extends Exception
This exception should be raised by the un-serialization code of a PDU (typically the constructor code with a byte[] parameter), when the detected PDU type (deduced from the first received byte of the message) is a PDU used in an older version of the replication protocol than the current one, and we do not support translation from this old version PDU to his matching PDU in the current protocol version (if it exists). Thus, the code catching this exception may decide special treatment, depending on the situation. For instance it may decide to trash the PDU and keep the connection opened, or to trash the PDU and close the connection...- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NotSupportedOldVersionPDUException(String pduStr, short protocolVersion, byte pduType)Exception constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetLocalizedMessage()StringgetMessage()Get the PDU message.bytegetPduType()Get the PDU type.shortgetProtocolVersion()Get the PDU protocol version.StringtoString()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Constructor Detail
-
NotSupportedOldVersionPDUException
public NotSupportedOldVersionPDUException(String pduStr, short protocolVersion, byte pduType)
Exception constructor.- Parameters:
pduStr- PDU description.protocolVersion- PDU protocol version.pduType- PDU number.
-
-
Method Detail
-
getMessage
public String getMessage()
Get the PDU message.- Overrides:
getMessagein classThrowable- Returns:
- The PDU message.
-
getLocalizedMessage
public String getLocalizedMessage()
- Overrides:
getLocalizedMessagein classThrowable
-
getProtocolVersion
public short getProtocolVersion()
Get the PDU protocol version.- Returns:
- The PDU protocol version.
-
getPduType
public byte getPduType()
Get the PDU type.- Returns:
- The PDU type.
-
-