def with_error(self, prev_error):
        self.prev_error = prev_error
        return self
Sets the previous error and returns self.
dataset/ETHPy150Open SpockBotMC/SpockBot/spockbot/plugins/tools/task.py/TaskFailed.with_error