A failure reported by a QRM&CI operation: a kind the caller can act on, plus a human-readable detail for logs and result messages. More...
Public Types | |
| enum class | Kind : std::uint8_t { NoBackendAvailable , UnsupportedFormat , CompilationFailed , SubmissionFailed , DeviceError , MessagingFailed , Internal , ConfigError , DriverUnavailable , ShutdownRequested } |
| What kind of failure occurred. More... | |
Public Attributes | |
| Kind | kind |
| The kind of failure, for a caller deciding what to do next. | |
| std::string | detail |
| A human-readable description, for log lines and for the cancellation message sent back to the task's submitter. | |
A failure reported by a QRM&CI operation: a kind the caller can act on, plus a human-readable detail for logs and result messages.
Categorically different failures – a backend that is merely not up yet, a circuit format that will never be accepted, a violated invariant – need different responses, and the wording of a message is no basis for telling them apart. The kind states the category outright; the detail carries the specifics for the log line and the cancellation message.
|
strong |
What kind of failure occurred.
This, not the wording of detail, is what callers dispatch on.
| std::string mqss::qrmci::Error::detail |
| Kind mqss::qrmci::Error::kind |