1
0
Fork 0
python-roguelike/exceptions.py

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."""