mirror of
https://github.com/UnlegitDqrk/Potato.git
synced 2026-01-16 05:36:34 +00:00
Added different ways the potato can be not delicious!
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user