equal
deleted
inserted
replaced
18 def __str__(self): |
18 def __str__(self): |
19 if self.msg: |
19 if self.msg: |
20 if self.args: |
20 if self.args: |
21 return self.msg % tuple(self.args) |
21 return self.msg % tuple(self.args) |
22 return self.msg |
22 return self.msg |
23 return ' '.join(str(arg) for arg in self.args) |
23 return ' '.join(unicode(arg) for arg in self.args) |
24 |
24 |
25 |
25 |
26 class ConfigurationError(CubicWebException): |
26 class ConfigurationError(CubicWebException): |
27 """a misconfiguration error""" |
27 """a misconfiguration error""" |
28 |
28 |
47 """raised when a bad connection id is given or when an attempt to establish |
47 """raised when a bad connection id is given or when an attempt to establish |
48 a connection failed""" |
48 a connection failed""" |
49 |
49 |
50 class AuthenticationError(ConnectionError): |
50 class AuthenticationError(ConnectionError): |
51 """raised when a bad connection id is given or when an attempt to establish |
51 """raised when a bad connection id is given or when an attempt to establish |
52 a connection failed""" |
52 a connection failed |
|
53 """ |
|
54 def __init__(self, *args, **kwargs): |
|
55 super(AuthenticationError, self).__init__(*args) |
|
56 self.__dict__.update(kwargs) |
53 |
57 |
54 class BadConnectionId(ConnectionError): |
58 class BadConnectionId(ConnectionError): |
55 """raised when a bad connection id is given or when an attempt to establish |
59 """raised when a bad connection id is given or when an attempt to establish |
56 a connection failed""" |
60 a connection failed""" |
57 |
61 |