Back to project page android-checkers-app.
The source code is released under:
Apache License
If you think the Android project android-checkers-app listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package edu.unlv.sudo.checkers.model.exception; //from w ww .j a v a2 s . c o m import edu.unlv.sudo.checkers.model.Team; /** * This represents an exception when a player tries to move out of turn. */ public class OutOfTurnException extends RuntimeException { private Team attemptedToMove; private Team turn; public OutOfTurnException(final Team turn, final Team attemptedToMove) { this.turn = turn; this.attemptedToMove = attemptedToMove; } public Team getTurn() { return turn; } public Team getAttemptedToMove() { return attemptedToMove; } }