org.moyoman.util
Class InconsistentStateException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--org.moyoman.util.InconsistentStateException
All Implemented Interfaces:
Serializable

public class InconsistentStateException
extends Exception

This exception is thrown when the representation of the game is inconsistent in some way, for example, attempting to flip the color of a point that is empty.

See Also:
Serialized Form

Field Summary
private  String message
           
 
Fields inherited from class java.lang.Exception
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
InconsistentStateException(Exception e)
           
InconsistentStateException(String msg)
          Create the InconsistentStateException object.
 
Method Summary
 String toString()
          Return the reason for the exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

message

private String message
Constructor Detail

InconsistentStateException

public InconsistentStateException(String msg)
Create the InconsistentStateException object.

Parameters:
msg - The message explaining the reason for the exception.

InconsistentStateException

public InconsistentStateException(Exception e)
Method Detail

toString

public String toString()
Return the reason for the exception.

Overrides:
toString in class Throwable
Returns:
The message.