diff pytouhou/formats/__init__.py @ 377:70e2ed71b09c

Add meaningful exceptions in format parsing.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Wed, 29 Aug 2012 18:34:28 +0200
parents 88361534c77e
children
line wrap: on
line diff
--- a/pytouhou/formats/__init__.py
+++ b/pytouhou/formats/__init__.py
@@ -3,3 +3,9 @@
 This package provides modules to handle the various proprietary file formats
 used by Touhou games.
 """
+
+class WrongFormatError(Exception):
+    pass
+
+class ChecksumError(Exception):
+    pass