Package org.eclipse.net4j.protocol
Class ProtocolVersionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalStateException
org.eclipse.net4j.protocol.ProtocolVersionException
- All Implemented Interfaces:
Serializable
An exception that indicates mismatch between the versions of two protocol peer implementations.
- Since:
- 4.2
- Author:
- Eike Stepper
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
checkVersion
(IProtocol<?> protocol, int expectedVersion) Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ProtocolVersionException
public ProtocolVersionException() -
ProtocolVersionException
-
ProtocolVersionException
-
ProtocolVersionException
-
-
Method Details
-
checkVersion
public static void checkVersion(IProtocol<?> protocol, int expectedVersion) throws ProtocolVersionException - Throws:
ProtocolVersionException
-