1
0
Fork 0
python-roguelike/exceptions.py

10 lines
268 B
Python
Raw Permalink Normal View History

class Impossible(Exception):
"""Exception raised when an action is impossible to be performed.
The reason is given as the exception message.
2022-01-18 14:04:05 -05:00
"""
class QuitWithoutSaving(SystemExit):
2022-02-08 10:00:28 -05:00
"""Can be raised to exit the game without automatically saving."""