Quantum Resource Manager and Compiler Infrastructure (QRM&CI) 0.1.0
Error.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2026 MQSS Maintainers
3 * All rights reserved.
4 *
5 * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 */
7
12
13#pragma once
14
15#include <cstdint>
16#include <string>
17#include <string_view>
18
19namespace mqss::qrmci {
20
69
73[[nodiscard]] std::string_view toString(Error::Kind kind) noexcept;
74
75} // namespace mqss::qrmci
std::string_view toString(Error::Kind kind) noexcept
Name an error kind for a log line.
A failure reported by a QRM&CI operation: a kind the caller can act on, plus a human-readable detail ...
Definition Error.h:29
Kind
What kind of failure occurred.
Definition Error.h:32
@ ConfigError
The configuration file exists but could not be parsed or failed validation.
Definition Error.h:51
@ SubmissionFailed
The device refused the job at submission time.
Definition Error.h:42
@ MessagingFailed
A messaging operation against the broker failed.
Definition Error.h:46
@ CompilationFailed
The compiler rejected the task's circuit – the submitter's input is at fault.
Definition Error.h:40
@ DriverUnavailable
The QDMI driver could not be used: the driver library was not found or would not load,...
Definition Error.h:56
@ Internal
An invariant this process relies on was violated, for a human to see.
Definition Error.h:48
@ DeviceError
The device took the job but produced no usable result.
Definition Error.h:44
@ UnsupportedFormat
The circuit format is not one the compiler or the backend accepts – the submitter's input is at fault...
Definition Error.h:37
@ ShutdownRequested
Daemon shutdown was requested while an interruptible operation was in progress.
Definition Error.h:60
@ NoBackendAvailable
No registered backend can run the task.
Definition Error.h:34
Kind kind
The kind of failure, for a caller deciding what to do next.
Definition Error.h:64
std::string detail
A human-readable description, for log lines and for the cancellation message sent back to the task's ...
Definition Error.h:67