1
0
python-roguelike/exceptions.py

9 lines
267 B
Python
Raw 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):
"""Can be raised to exit the game without automatically saving."""