Added different ways the potato can be not delicious!

This commit is contained in:
Desetude
2015-10-28 17:10:49 +00:00
parent ffbb869431
commit 8e47ab0d34
3 changed files with 23 additions and 3 deletions

View File

@@ -1,8 +1,17 @@
package org.drtshock;
/**
* An exception to describe that the potato isn't delicious!
*/
public class NotDeliciousException extends Exception {
public NotDeliciousException() {
/**
* The reason for non-deliciousness.
*/
private NotDeliciousReason notDeliciousReason;
public NotDeliciousException(NotDeliciousReason notDeliciousReason) {
this.notDeliciousReason = notDeliciousReason;
}
}