Holger's
Java API

com.antelmann.game
Class CannotPlayGameException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.antelmann.game.GameRuntimeException
                  extended by com.antelmann.game.CannotPlayGameException
All Implemented Interfaces:
Serializable

public class CannotPlayGameException
extends GameRuntimeException

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

Author:
Holger Antelmann
See Also:
Serialized Form

Constructor Summary
CannotPlayGameException(Player player, GamePlay game, String customText)
           
 
Method Summary
 GamePlay getGame()
           
 Player getPlayer()
           
 
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,
                               String customText)
Method Detail

getPlayer

public Player getPlayer()

getGame

public GamePlay getGame()
Overrides:
getGame in class GameRuntimeException


(c) 2001-2006 Holger Antelmann - all rights reserved (contact: info@antelmann.com)
see www.antelmann.com/developer for further details and available downloads