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:
- java.io.Serializable
 
 public class ProtocolVersionException extends java.lang.IllegalStateExceptionAn exception that indicates mismatch between the versions of two protocol peer implementations.- Since:
- 4.2
- Author:
- Eike Stepper
- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description ProtocolVersionException()ProtocolVersionException(java.lang.String s)ProtocolVersionException(java.lang.String message, java.lang.Throwable cause)ProtocolVersionException(java.lang.Throwable cause)
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcheckVersion(IProtocol<?> protocol, int expectedVersion)
 
- 
- 
- 
Constructor Detail- 
ProtocolVersionExceptionpublic ProtocolVersionException() 
 - 
ProtocolVersionExceptionpublic ProtocolVersionException(java.lang.String s) 
 - 
ProtocolVersionExceptionpublic ProtocolVersionException(java.lang.Throwable cause) 
 - 
ProtocolVersionExceptionpublic ProtocolVersionException(java.lang.String message, java.lang.Throwable cause)
 
- 
 - 
Method Detail- 
checkVersionpublic static void checkVersion(IProtocol<?> protocol, int expectedVersion) throws ProtocolVersionException - Throws:
- ProtocolVersionException
 
 
- 
 
-