vooga.gameEngine.exception
Class IllegalNumberOfPlayersException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by vooga.gameEngine.exception.VOOGAEngineException
                  extended by vooga.gameEngine.exception.IllegalNumberOfPlayersException
All Implemented Interfaces:
java.io.Serializable

public class IllegalNumberOfPlayersException
extends VOOGAEngineException

Exception to be thrown when an AbstractGame is attempted to be played with an invalid number of players.

Author:
Scott Brothers
See Also:
Serialized Form

Constructor Summary
IllegalNumberOfPlayersException(int numPlayers, java.lang.Class<? extends AbstractGame> gameClass)
           
 
Method Summary
 
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
 

Constructor Detail

IllegalNumberOfPlayersException

public IllegalNumberOfPlayersException(int numPlayers,
                                       java.lang.Class<? extends AbstractGame> gameClass)
Parameters:
numPlayers - the number of players attempted to be used
gameClass - the type of game involved