mirror of
https://github.com/UnlegitDqrk/Potato.git
synced 2026-01-16 05:36:34 +00:00
Fixed format, added println for cooking degrees and refactored burnt exception
This commit is contained in:
12
src/main/java/org/drtshock/BurntException.java
Normal file
12
src/main/java/org/drtshock/BurntException.java
Normal 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!!");
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user