Package tidy :: Module error
[hide private]
[frames] | no frames]

Source Code for Module tidy.error

 1  __all__ = ('TidyLibError', 'InvalidOptionError', 'OptionArgError', 
 2             ) 
 3              
4 -class TidyLibError(Exception):
5 - def __init__(self, arg):
6 self.arg=arg
7
8 -class InvalidOptionError(TidyLibError):
9 - def __str__(self):
10 return "%s was not a valid Tidy option." % (self.arg)
11 __repr__=__str__
12
13 -class OptionArgError(TidyLibError):
14 - def __init__(self, arg):
15 self.arg=arg
16 - def __str__(self):
17 return self.arg
18