Fixed format, added println for cooking degrees and refactored burnt exception

This commit is contained in:
Ron Nabuurs
2016-05-12 09:45:23 +02:00
parent bfc36e8b6e
commit 97be05236b
3 changed files with 32 additions and 31 deletions

View File

@@ -0,0 +1,12 @@
package org.drtshock;
/**
* An exception to describe that something went wrong with our oven!
*/
public class BurntException extends Exception {
public BurntException(int degrees) {
super("Potato is badly burnt by trying to boil it at " + degrees + " degrees!!");
}
}