<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def raises(self, exc):
 """Set last call to raise an exception class or instance. For example:: Traceback (most recent call last):
 ValueError: not enough parameters for insert """

        exp = self._get_current_call()
        exp.exception_to_raise = exc
        return self