<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_transfer_spec(self):
        ''' run the function to set the transfer spec on error set associated exception '''
        _ret = False
        try:
            self._args.transfer_spec_func(self._args)
            _ret = True
        except Exception as ex:
            self.notify_exception(AsperaTransferSpecError(ex), False)
        return _ret