org.jscience.computing.game
Class GameRuntimeException

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
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
CannotPlayGameException

public class GameRuntimeException
extends java.lang.RuntimeException

The GameRuntimeException provides access to the GamePlay object that is associated to the exception, so that Exception handing code can take advantage of it.

See Also:
GameException, Serialized Form

Constructor Summary
GameRuntimeException()
          Creates a new GameRuntimeException object.
GameRuntimeException(GamePlay game, java.lang.String errorText)
          Creates a new GameRuntimeException object.
GameRuntimeException(GamePlay game, java.lang.String errorText, java.lang.Throwable cause)
          Creates a new GameRuntimeException object.
GameRuntimeException(java.lang.String text)
          Creates a new GameRuntimeException object.
GameRuntimeException(java.lang.String text, java.lang.Throwable cause)
          Creates a new GameRuntimeException object.
 
Method Summary
 GamePlay getGame()
          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

GameRuntimeException

public GameRuntimeException()
Creates a new GameRuntimeException object.


GameRuntimeException

public GameRuntimeException(java.lang.String text)
Creates a new GameRuntimeException object.

Parameters:
text - DOCUMENT ME!

GameRuntimeException

public GameRuntimeException(java.lang.String text,
                            java.lang.Throwable cause)
Creates a new GameRuntimeException object.

Parameters:
text - DOCUMENT ME!
cause - DOCUMENT ME!

GameRuntimeException

public GameRuntimeException(GamePlay game,
                            java.lang.String errorText)
Creates a new GameRuntimeException object.

Parameters:
game - DOCUMENT ME!
errorText - DOCUMENT ME!

GameRuntimeException

public GameRuntimeException(GamePlay game,
                            java.lang.String errorText,
                            java.lang.Throwable cause)
Creates a new GameRuntimeException object.

Parameters:
game - DOCUMENT ME!
errorText - DOCUMENT ME!
cause - DOCUMENT ME!
Method Detail

getGame

public GamePlay getGame()
DOCUMENT ME!

Returns:
DOCUMENT ME!