soc.game
Class SOCGameOptionVersionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
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
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 |
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)
SOCGameOptionVersionException
public SOCGameOptionVersionException(int optVers,
int cliVers,
java.util.List<SOCGameOption> optsValuesTooNew)
- Parameters:
optVers
- Minimum client version required by game optionscliVers
- Requesting client's versionoptsValuesTooNew
- The SOCGameOption
(s) which are too new,
as returned by SOCGameOption.optionsNewerThanVersion(int, boolean, boolean, Map)
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