org.starhope.appius.except
Class GameLogicException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.starhope.appius.except.GameLogicException
All Implemented Interfaces:
Serializable, CastsToJSON

public class GameLogicException
extends Exception
implements CastsToJSON

An exception which can be thrown in the database code, that reflects something that's less of a data-consistency error, and more of a game logic issue.

Author:
brpocock@star-hope.org
See Also:
Serialized Form

Field Summary
private  Object myObj
          WRITEME
private  Object myOther
          WRITEME
private  String myString
          WRITEME
private static long serialVersionUID
          WRITEME
 
Constructor Summary
GameLogicException(String string, Object obj, Object other)
           
 
Method Summary
 String getMessage()
           
 org.json.JSONObject toJSON()
          This returns a copy of the object's data cast into a JSON form.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
WRITEME

See Also:
Constant Field Values

myObj

private final Object myObj
WRITEME


myOther

private final Object myOther
WRITEME


myString

private final String myString
WRITEME

Constructor Detail

GameLogicException

public GameLogicException(String string,
                          Object obj,
                          Object other)
Parameters:
string - WRITEME
obj - WRITEME
other - WRITEME
Method Detail

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable
See Also:
Throwable.getMessage()

toJSON

public org.json.JSONObject toJSON()
Description copied from interface: CastsToJSON
This returns a copy of the object's data cast into a JSON form.

Specified by:
toJSON in interface CastsToJSON
Returns:
a JSON version of the contents of this object