vooga.levelEditor.model
Class ImproperlyAnnotatedClassException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by vooga.levelEditor.model.ImproperlyAnnotatedClassException
All Implemented Interfaces:
java.io.Serializable

public class ImproperlyAnnotatedClassException
extends java.lang.Exception

Thrown when we detect that one or more of a game's classes have not annotated themselves properly.

Author:
Phil Puryear
See Also:
Serialized Form

Constructor Summary
ImproperlyAnnotatedClassException(java.lang.Class<?> gameClass)
          Constructs a new exception with no message.
ImproperlyAnnotatedClassException(java.lang.String message, java.lang.Class<?> gameClass)
          Constructs a new exception with the given message.
 
Method Summary
 java.lang.Class<?> getErringClass()
          Returns the improperly annotated class.
 
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

ImproperlyAnnotatedClassException

public ImproperlyAnnotatedClassException(java.lang.Class<?> gameClass)
Constructs a new exception with no message.

Parameters:
gameClass - The class that has been improperly annotated.

ImproperlyAnnotatedClassException

public ImproperlyAnnotatedClassException(java.lang.String message,
                                         java.lang.Class<?> gameClass)
Constructs a new exception with the given message.

Parameters:
gameClass - The class that has been improperly annotated.
Method Detail

getErringClass

public java.lang.Class<?> getErringClass()
Returns the improperly annotated class. May be null.