<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _report_error(self, request, exp):
 """When making the request, if an error happens, log it."""

        message = (
            "Failure to perform %s due to [ %s ]" % (request, exp)
        )
        self.log.fatal(message)
        raise requests.RequestException(message)