org.moyoman.util
Class SuicideException

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

public class SuicideException
extends IllegalMoveException

This exception is thrown when a move is made which is suicide. If the rule set being used allows suicide, then this exception would not be thrown.

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
SuicideException(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

SuicideException

public SuicideException(Stone st)
Create the exception.

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