<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set_error_callback(self, callback):
 """Assign a method to invoke when a request has encountered an unrecoverable error in an action execution. :param method callback: The method to invoke """

        self.logger.debug('Setting error callback: %r', callback)
        self._on_error = callback