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
Fields inherited from class java.lang.Exception |
|
Fields inherited from class java.lang.Throwable |
|
message
private String message
InconsistentStateException
public InconsistentStateException(String msg)
- Create the InconsistentStateException object.
- Parameters:
msg
- The message explaining the reason for the exception.
InconsistentStateException
public InconsistentStateException(Exception e)
toString
public String toString()
- Return the reason for the exception.
- Overrides:
toString
in class Throwable
- Returns:
- The message.