Marcin Kasperski avatar Marcin Kasperski committed 853dd33

Moving style12 parsing exception to proper file.

Comments (0)

Files changed (2)

src/mekk/fics/datatypes/style12.py

 from mekk.fics.datatypes.color import Color
 from mekk.fics.datatypes.game_clock import GameClock
 from mekk.fics.datatypes.player import PlayerName
-
-class BadStyle12Format(Exception):
-    """Failed to parse style12 string"""
-    pass
+from mekk.fics.errors import BadStyle12Format
 
 OBSERVER_WATCHING_ISOLATED_POSITION = -3
 OBSERVER_WATCHING_EXAMINE = -2

src/mekk/fics/errors.py

             self, "Couldn't parse command {0:>s} output. Problematic text:\n{1:>s}".format(
                 command, troublesome_text))
 
+class BadStyle12Format(FicsClientException):
+    """Failed to parse style12 string"""
+    pass
+
 class FicsCommandExecutionException(FicsCommandException):
     """Exception thrown in case command output indicates failure
     (for example when we try to observe private game or attempt
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.