drtshock / Potato

If you fork this then you can say you forked a potato.
GNU General Public License v3.0
713 stars 2.56k forks source link

Split BurntException into two subexceptions. #132

Closed Ichbinjoe closed 5 years ago

Ichbinjoe commented 6 years ago

BurntException initially was thrown whenever a burn condition on the potato was detected, however the constructors for BurntException were very similar and could have collided. Instead, split it out into two new exceptions - BurntTimeException and BurntTemperatureException.