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 w w. ja v a 2 s . co m import edu.unlv.sudo.checkers.model.Location; import edu.unlv.sudo.checkers.model.Piece; /** * This exception represents an invalid move. */ public class InvalidMoveException extends RuntimeException { private Piece piece; private Location location; public InvalidMoveException(final Piece piece, final Location location) { this.piece = piece; this.location = location; } public Piece getPiece() { return piece; } public Location location() { return location; } }