projects
/
python-collate.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cleanup in preparation for release. Add docstrings, remove basically empty _constants...
[python-collate.git]
/
collate
/
errors.py
diff --git
a/collate/errors.py
b/collate/errors.py
index
cef5c07
..
ca8eec7
100644
(file)
--- a/
collate/errors.py
+++ b/
collate/errors.py
@@
-1,2
+1,11
@@
+"""Exception types for the collate module."""
+
class InvalidLocaleError(ValueError):
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)