Permalink
Browse files

Modify javadoc

  • Loading branch information...
1 parent f4975aa commit e11dbbc53fc46bcf375089849252316e784352dd Kestutis-Z committed Nov 7, 2012
@@ -0,0 +1,17 @@
+package chess;
+
+/**
+ * An exception that occurs when incorrect chess diagram
+ * is provided as an argument.
+ *
+ * @author Kestutis
+ *
+ */
+public class IncorrectChessDiagramException extends Exception {
+
+ private static final long serialVersionUID = 1L;
+
+ public IncorrectChessDiagramException(String message) {
+ super("\n" + message);
+ }
+}
@@ -1,7 +1,12 @@
package chess;
-/** An exception that occurs when the square is expected to
- * contain some piece, but does not. */
+/**
+ * An exception that occurs when the square is expected to
+ * contain some piece, but does not.
+ *
+ * @author Kestutis
+ *
+ */
public class SquareContainsNoPiecesException extends Exception {
private static final long serialVersionUID = -5331133672234425506L;
@@ -1,7 +1,12 @@
package chess;
-/** Represents an exception occuring when a square is expected
- * to have an adjacent square, but does not have. */
+/**
+ * Represents an exception occuring when a square is expected
+ * to have an adjacent square, but does not have.
+ *
+ * @author Kestutis
+ *
+ */
public class SquareHasNoAdjacentSquareException extends Exception {
private static final long serialVersionUID = -3604688674460679824L;

0 comments on commit e11dbbc

Please sign in to comment.