1
0
python-roguelike/exceptions.py
2022-02-08 10:00:28 -05:00

10 lines
268 B
Python

class Impossible(Exception):
"""Exception raised when an action is impossible to be performed.
The reason is given as the exception message.
"""
class QuitWithoutSaving(SystemExit):
"""Can be raised to exit the game without automatically saving."""