def handle_errors(self, httpCode, reason, url, method, headers, body, response, requestHeaders, requestBody):
    if (response is None):
        return
    errorCode = self.safe_string(response, 'errorCode')
    error = self.safe_string(response, 'error')
    if (errorCode is not None):
        feedback = ((self.id + ' ') + body)
        self.throw_broadly_matched_exception(self.exceptions['broad'], error, feedback)
        self.throw_exactly_matched_exception(self.exceptions['exact'], errorCode, feedback)
        raise ExchangeError(feedback)
def handle_errors(self, httpCode, reason, url, method, headers, body, response, requestHeaders, requestBody):
    if (response is None):
        return
    errorCode = self.safe_string(response, 'errorCode')
    error = self.safe_string(response, 'error')
    if (errorCode is not None):
        feedback = ((self.id + ' ') + body)
        self.throw_broadly_matched_exception(self.exceptions['broad'], error, feedback)
        self.throw_exactly_matched_exception(self.exceptions['exact'], errorCode, feedback)
        raise ExchangeError(feedback)