+"""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)