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

Class CLIError

dwave/cloud/utils/cli.py:65–71  ·  view source on GitHub ↗

CLI command error that includes the error code in addition to the standard error message.

Source from the content-addressed store, hash-verified

63
64
65class CLIError(Exception):
66 """CLI command error that includes the error code in addition to the
67 standard error message."""
68
69 def __init__(self, message, code):
70 super().__init__(message)
71 self.code = code
72
73
74def deprecated_option(msg: Optional[str] = None, update: Optional[str] = None) -> abc.Callable:

Callers 10

_write_configFunction · 0.90
_get_client_solverFunction · 0.90
_sampleFunction · 0.90
pingFunction · 0.90
sampleFunction · 0.90
getFunction · 0.90
refreshFunction · 0.90
revokeFunction · 0.90
list_leap_projectsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected