Add ShouldNeverHappen exception

This commit is contained in:
Joscha 2019-06-07 17:30:50 +00:00
parent a9ddf27525
commit d8ee20c402
4 changed files with 16 additions and 6 deletions

View file

@ -1,4 +1,10 @@
__all__ = ["MessageSupplyException"]
__all__ = ["MessageSupplyException", "ShouldNeverHappen"]
class MessageSupplyException(Exception):
pass
class ShouldNeverHappen(Exception):
def __init__(self, number: int) -> None:
message = (f"SNV{number:05} - please contact @Garmy with the code on"
" the left if you see this")
super().__init__(message)