(self)
| 234 | return hash(self) == hash(other) |
| 235 | |
| 236 | def __hash__(self): |
| 237 | if hasattr(self, "message"): |
| 238 | return hash( |
| 239 | ( |
| 240 | self.message, |
| 241 | self.code, |
| 242 | make_hashable(self.params), |
| 243 | ) |
| 244 | ) |
| 245 | if hasattr(self, "error_dict"): |
| 246 | return hash(make_hashable(self.error_dict)) |
| 247 | return hash(tuple(sorted(self.error_list, key=operator.attrgetter("message")))) |
| 248 | |
| 249 | |
| 250 | class EmptyResultSet(Exception): |
nothing calls this directly
no test coverage detected