MCPcopy Create free account
hub / github.com/dwavesystems/dwave-cloud-client / _set_exception

Method _set_exception

dwave/cloud/computation.py:198–206  ·  view source on GitHub ↗

Complete the future with an exception. Args: exception (Exception): Exception that caused the failure.

(self, exception)

Source from the content-addressed store, hash-verified

196 self._signal_ready()
197
198 def _set_exception(self, exception):
199 """Complete the future with an exception.
200
201 Args:
202 exception (Exception):
203 Exception that caused the failure.
204 """
205 self._exception = exception
206 self._signal_ready()
207
208 def _signal_ready(self):
209 """Signal all the events waiting on this future."""

Callers 6

filter_readyMethod · 0.80
_do_submit_problemsMethod · 0.80
_do_cancel_problemsMethod · 0.80
_do_poll_problemsMethod · 0.80
_do_load_resultsMethod · 0.80

Calls 1

_signal_readyMethod · 0.95

Tested by

no test coverage detected