vooga.gameEngine.exception
Class GameInstantiationException

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.GameInstantiationException
All Implemented Interfaces:
java.io.Serializable

public class GameInstantiationException
extends VOOGAEngineException

An exception indicating that a specified type of AbstractGame was unable to be created.

Author:
Scott Brothers
See Also:
Serialized Form

Constructor Summary
GameInstantiationException(java.lang.Class<? extends AbstractGame> gameClass)
           
GameInstantiationException(java.lang.Class<? extends AbstractGame> gameClass, java.lang.String reason)
           
 
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

GameInstantiationException

public GameInstantiationException(java.lang.Class<? extends AbstractGame> gameClass)
Parameters:
gameClass - Class that could not be instantiated

GameInstantiationException

public GameInstantiationException(java.lang.Class<? extends AbstractGame> gameClass,
                                  java.lang.String reason)
Parameters:
gameClass - Class that could not be instantiated
reason - Optional message providing a reason for the exception