org.moyoman.util
Class WrongColorException

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

public class WrongColorException
extends IllegalMoveException

This exception is thrown if a move of the wrong color is made.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.moyoman.util.IllegalMoveException
 
Fields inherited from class java.lang.Exception
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
WrongColorException(Stone st)
          Create the exception.
 
Methods inherited from class org.moyoman.util.IllegalMoveException
getStone
 
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

WrongColorException

public WrongColorException(Stone st)
Create the exception.

Parameters:
st - - The move which caused the exception.