Utilities/__init__.py

changeset 3591
2f2a4a76dd22
parent 3525
66f4b8646622
child 3621
15f23ed3f216
equal deleted inserted replaced
3590:5280e37405b8 3591:2f2a4a76dd22
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

eric ide

mercurial