Method
handle_http_status_code
(self, code, reason, url, method, body)
Source from the content-addressed store, hash-verified
| 1997 | raise InvalidOrder(self.id + ' create_order() amount should be above 0') |
| 1998 | |
| 1999 | def handle_http_status_code(self, code, reason, url, method, body): |
| 2000 | codeAsString = str(code) |
| 2001 | if codeAsString in self.httpExceptions: |
| 2002 | ErrorClass = self.httpExceptions[codeAsString] |
| 2003 | raise ErrorClass(self.id + ' ' + method + ' ' + url + ' ' + codeAsString + ' ' + reason + ' ' + body) |
| 2004 | |
| 2005 | @staticmethod |
| 2006 | def crc32(string, signed=False): |
Tested by
no test coverage detected