28 """ |
28 """ |
29 self.errorMessage = str(error) |
29 self.errorMessage = str(error) |
30 |
30 |
31 def __repr__(self): |
31 def __repr__(self): |
32 """ |
32 """ |
33 Private method returning a representation of the exception. |
33 Special method returning a representation of the exception. |
34 |
34 |
35 @return string representing the error message |
35 @return string representing the error message |
36 """ |
36 """ |
37 return str(self.errorMessage) |
37 return str(self.errorMessage) |
38 |
38 |
39 def __str__(self): |
39 def __str__(self): |
40 """ |
40 """ |
41 Private method returning a string representation of the exception. |
41 Special method returning a string representation of the exception. |
42 |
42 |
43 @return string representing the error message |
43 @return string representing the error message |
44 """ |
44 """ |
45 return str(self.errorMessage) |
45 return str(self.errorMessage) |
46 |
46 |