soc.game
Class SOCGameOptionVersionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by java.lang.IllegalArgumentException
                  extended by soc.game.SOCGameOptionVersionException
All Implemented Interfaces:
java.io.Serializable

public class SOCGameOptionVersionException
extends java.lang.IllegalArgumentException

This exception indicates game option(s) too new for a client.

Since:
1.1.07
Author:
Jeremy D Monin
See Also:
SOCVersionedItem.itemsMinimumVersion(Map), SOCGameOption.optionsNewerThanVersion(int, boolean, boolean, Map), Serialized Form

Field Summary
 int cliVersion
          Requesting client's version
 int gameOptsVersion
          Minimum client version required by game options
 java.util.List<SOCGameOption> problemOptionsTooNew
          The SOCGameOption(s) which are too new, as returned by SOCGameOption.optionsNewerThanVersion(int, boolean, boolean, Map)
private static long serialVersionUID
           
 
Constructor Summary
SOCGameOptionVersionException(int optVers, int cliVers, java.util.List<SOCGameOption> optsValuesTooNew)
           
 
Method Summary
 java.lang.String problemOptionsList()
          Build the list of "problem options" as a string, separated by "," (SOCMessage.SEP2).
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

gameOptsVersion

public final int gameOptsVersion
Minimum client version required by game options


cliVersion

public final int cliVersion
Requesting client's version


problemOptionsTooNew

public final java.util.List<SOCGameOption> problemOptionsTooNew
The SOCGameOption(s) which are too new, as returned by SOCGameOption.optionsNewerThanVersion(int, boolean, boolean, Map)

Constructor Detail

SOCGameOptionVersionException

public SOCGameOptionVersionException(int optVers,
                                     int cliVers,
                                     java.util.List<SOCGameOption> optsValuesTooNew)
Parameters:
optVers - Minimum client version required by game options
cliVers - Requesting client's version
optsValuesTooNew - The SOCGameOption(s) which are too new, as returned by SOCGameOption.optionsNewerThanVersion(int, boolean, boolean, Map)
Method Detail

problemOptionsList

public java.lang.String problemOptionsList()
Build the list of "problem options" as a string, separated by "," (SOCMessage.SEP2).

Returns:
list of option keys too new, or "" if none