Holger's
Java API

com.antelmann.game
Class GameRuntimeException

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

public class GameRuntimeException
extends 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.

Author:
Holger Antelmann
See Also:
GameException, Serialized Form

Constructor Summary
GameRuntimeException()
           
GameRuntimeException(GamePlay game, String errorText)
           
GameRuntimeException(GamePlay game, String errorText, Throwable cause)
           
GameRuntimeException(String text)
           
GameRuntimeException(String text, Throwable cause)
           
 
Method Summary
 GamePlay getGame()
           
 
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()

GameRuntimeException

public GameRuntimeException(String text)

GameRuntimeException

public GameRuntimeException(String text,
                            Throwable cause)

GameRuntimeException

public GameRuntimeException(GamePlay game,
                            String errorText)

GameRuntimeException

public GameRuntimeException(GamePlay game,
                            String errorText,
                            Throwable cause)
Method Detail

getGame

public GamePlay getGame()


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