org.jscience.computing.game
Class CannotPlayGameException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.jscience.computing.game.GameRuntimeException
                  extended by org.jscience.computing.game.CannotPlayGameException
All Implemented Interfaces:
java.io.Serializable

public class CannotPlayGameException
extends GameRuntimeException

An Exception that is thrown if a Player cannot play a given game implementation

See Also:
Serialized Form

Constructor Summary
CannotPlayGameException(Player player, GamePlay game, java.lang.String customText)
          Creates a new CannotPlayGameException object.
 
Method Summary
 GamePlay getGame()
          DOCUMENT ME!
 Player getPlayer()
          DOCUMENT ME!
 
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

CannotPlayGameException

public CannotPlayGameException(Player player,
                               GamePlay game,
                               java.lang.String customText)
Creates a new CannotPlayGameException object.

Parameters:
player - DOCUMENT ME!
game - DOCUMENT ME!
customText - DOCUMENT ME!
Method Detail

getPlayer

public Player getPlayer()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getGame

public GamePlay getGame()
DOCUMENT ME!

Overrides:
getGame in class GameRuntimeException
Returns:
DOCUMENT ME!