vooga.engine.resource.clock
Class GameClockException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by vooga.engine.resource.clock.GameClockException
All Implemented Interfaces:
java.io.Serializable

public class GameClockException
extends java.lang.Exception

Thrown when an invalid GameClock Operation is performed. These operations could include reseting, pausing, or unpausing the GameCLock before it is started; pausing the GameClock when it is already paused; unpausing the GameClock when the GameClock is already unpaused. When these exceptions occur, nothing happens within GameClock. For instance a command to pause a clock that is paused or not yet started is ignored. Generally these errors will not cause the game to fail, but rather indicate that the code using the GameClock is improperly implemented. For instance, perhaps the code is not designed to guarantee that the clock starts before other operations are begun. Or two different parts of the code have overlapping cases which cause them to pause the game clock.

See Also:
Serialized Form

Constructor Summary
GameClockException()
          Constructs a new GameClockException that includes the current stack trace.
GameClockException(java.lang.String detailMessage)
          Constructs a new GameClockException with the current stack trace and the specified detail message.
 
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

GameClockException

public GameClockException()
Constructs a new GameClockException that includes the current stack trace.


GameClockException

public GameClockException(java.lang.String detailMessage)
Constructs a new GameClockException with the current stack trace and the specified detail message.

Parameters:
detailMessage - the detail message for this exception.