def add_error(self, error):
        assert isinstance(error, Exception)
        self._error = error
Attach an exception to this transfer rather than data.
dataset/ETHPy150Open mbedmicro/pyOCD/pyOCD/pyDAPAccess/dap_access_usb.py/_Transfer.add_error