ictk.boardgame
Class IllegalMoveException
java.lang.Object
java.lang.Throwable
java.lang.Exception
ictk.boardgame.BoardGameException
ictk.boardgame.MoveException
ictk.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
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 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 |
IllegalMoveException
public IllegalMoveException()
IllegalMoveException
public IllegalMoveException(java.lang.String s)
IllegalMoveException
public IllegalMoveException(java.lang.String s,
Move _m)
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()