blob: ad7a89473447d8c445de24326c2e6994c78df4a3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
""" Define a few exceptions types to be used. """
class WrongAction(Exception):
""" Exception to be raised when a player performs an action that is not
permitted. """
class UnsupportedLanguage(Exception):
""" Exception to be raised when trying to join a game in a language that is
not supported. """
class JoinError(Exception):
""" Exception to be raised when a game/room cannot be joined. """
|