Files
potato/src/main/java/org/drtshock/BurntException.java
2017-06-21 09:26:17 -05:00

17 lines
425 B
Java

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!!");
}
public BurntException(long bakeTime) {
super("Potato is badly burnt by baking for too long!! (" + bakeTime + "ms)");
}
}