Add ShouldNeverHappen exception
This commit is contained in:
parent
a9ddf27525
commit
d8ee20c402
4 changed files with 16 additions and 6 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue