Internet Chess ToolKit
v0.2.0

ictk.boardgame
Class IllegalMoveException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byictk.boardgame.BoardGameException
              extended byictk.boardgame.MoveException
                  extended byictk.boardgame.IllegalMoveException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
OutOfTurnException

public class IllegalMoveException
extends MoveException

this is thrown when you try to execute or add an illegal move to the game.

See Also:
Serialized Form

Constructor Summary
IllegalMoveException()
           
IllegalMoveException(java.lang.String s)
           
IllegalMoveException(java.lang.String s, Move _m)
           
 
Method Summary
 java.lang.String getMoveString()
          returns a value that failed to be parsed into a legal move.
 void setMoveString(java.lang.String m)
          if the move wasn't processed, or doesn't yet have sensible data the moveString might have been set.
 java.lang.String toString()
           
 
Methods inherited from class ictk.boardgame.MoveException
getMove
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IllegalMoveException

public IllegalMoveException()

IllegalMoveException

public IllegalMoveException(java.lang.String s)

IllegalMoveException

public IllegalMoveException(java.lang.String s,
                            Move _m)
Method Detail

setMoveString

public void setMoveString(java.lang.String m)
if the move wasn't processed, or doesn't yet have sensible data the moveString might have been set. This is basically a way for bad input values to be returned by parsers.


getMoveString

public java.lang.String getMoveString()
returns a value that failed to be parsed into a legal move.


toString

public java.lang.String toString()

Submit a bug or feature
Visit the Website
Internet Chess ToolKit is licensed under the GPL v2 .