Class InvalidVersionException

java.lang.Object
java.lang.Throwable
java.lang.Exception
marauroa.common.net.InvalidVersionException
All Implemented Interfaces:
Serializable

public class InvalidVersionException extends Exception
This exception is thrown when a invalid version message is received.
See Also:
Serialized Form
  • 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