Add BurntException for baking too long

This commit is contained in:
Trophonix
2017-06-21 09:21:57 -05:00
parent b0ea26519d
commit 40831b6e01
3 changed files with 12 additions and 14 deletions

View File

@@ -9,4 +9,8 @@ public class BurntException extends Exception {
super("Potato is badly burnt by trying to boil it at " + degrees + " degrees!!");
}
public BurntException() {
super("Potato is badly burnt by baking for too long!");
}
}