mirror of
https://github.com/UnlegitDqrk/Potato.git
synced 2026-01-15 21:26:33 +00:00
17 lines
425 B
Java
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)");
|
|
}
|
|
|
|
}
|