Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation and Commenting of Project #1

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
17 changes: 12 additions & 5 deletions src/eu/janinko/games/backgammon/WrongMoveException.java
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
package eu.janinko.games.backgammon;

/**
* Exception Class for invalid Backgammon movements.
*
* @see Exception
*/
public class WrongMoveException extends Exception {


/**
* Exception for requesting invalid moves in Backgammon. For criteria of
* when this exception is used see the Backgammon rules.
*/
public WrongMoveException() {
super("Wrong move!");
}
/**
*
*/
private static final long serialVersionUID = 8184331891011138632L;

// Unique ID corresponding to this exception type
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

serialVersionUID is documented in https://docs.oracle.com/javase/7/docs/api/java/io/Serializable.html and as it's part of Java specification I think it's not necessary to have it commented.

private static final long serialVersionUID = 8184331891011138632L;

}