122 "CodingError", |
122 "CodingError", |
123 "The coding '{0}' is wrong for the given text.").format(coding) |
123 "The coding '{0}' is wrong for the given text.").format(coding) |
124 |
124 |
125 def __repr__(self): |
125 def __repr__(self): |
126 """ |
126 """ |
127 Private method returning a representation of the exception. |
127 Special method returning a representation of the exception. |
128 |
128 |
129 @return string representing the error message |
129 @return string representing the error message |
130 """ |
130 """ |
131 return str(self.errorMessage) |
131 return str(self.errorMessage) |
132 |
132 |
133 def __str__(self): |
133 def __str__(self): |
134 """ |
134 """ |
135 Private method returning a string representation of the exception. |
135 Special method returning a string representation of the exception. |
136 |
136 |
137 @return string representing the error message |
137 @return string representing the error message |
138 """ |
138 """ |
139 return str(self.errorMessage) |
139 return str(self.errorMessage) |
140 |
140 |