20 """ |
20 """ |
21 def __init__(self, error): |
21 def __init__(self, error): |
22 """ |
22 """ |
23 Constructor |
23 Constructor |
24 """ |
24 """ |
25 self.errorMessage = unicode(error) |
25 self.errorMessage = str(error) |
26 |
26 |
27 def __repr__(self): |
27 def __repr__(self): |
28 """ |
28 """ |
29 Private method returning a representation of the exception. |
29 Private method returning a representation of the exception. |
30 |
30 |
31 @return string representing the error message |
31 @return string representing the error message |
32 """ |
32 """ |
33 return unicode(self.errorMessage) |
33 return str(self.errorMessage) |
34 |
34 |
35 def __str__(self): |
35 def __str__(self): |
36 """ |
36 """ |
37 Private method returning a string representation of the exception. |
37 Private method returning a string representation of the exception. |
38 |
38 |