Package marauroa.common.net
Class InvalidVersionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
marauroa.common.net.InvalidVersionException
- All Implemented Interfaces:
Serializable
This exception is thrown when a invalid version message is received.
- See Also:
- Serialized Form
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
gets the wrong versionint
Return the version numberMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InvalidVersionException
public InvalidVersionException(int version)Constructor- Parameters:
version
- the version that caused the exception
-
-
Method Details
-
getVersion
public int getVersion()Return the version number- Returns:
- the version number
-
getProtocolVersion
public int getProtocolVersion()gets the wrong version- Returns:
- protocolVersion
-