Cleanup in preparation for release. Add docstrings, remove basically empty _constants...
[python-collate.git] / collate / errors.py
index cef5c07..ca8eec7 100644 (file)
@@ -1,2 +1,11 @@
+"""Exception types for the collate module."""
+
 class InvalidLocaleError(ValueError):
-    pass
+    """Raised when an invalid locale is given to a function.
+
+    Attributes:
+    locale - the attempted invalid locale 
+    """
+    def __init__(self, locale, string=""):
+        self.locale = locale
+        ValueError.__init__(self, string or locale)