Skip to content

Instantly share code, notes, and snippets.

View emilepetrone's full-sized avatar
🏠
Working from home

Emile Petrone emilepetrone

🏠
Working from home
View GitHub Profile
class ConvertError(ValueError):
message = 'Whoops - one of the values you entered cannot be converted to something that will work for these calculations. Try this again.'
class BadStuff(BaseException):
message = 'Something went wrong with this calculation. Maybe try passing in new values.'
class Zero(ZeroDivisionError):
message = 'Yeah, dividing with a 0 in the mix does not work.'