Quantum Resource Manager and Compiler Infrastructure (QRM&CI) 0.1.0
Error.h File Reference
Include dependency graph for Error.h:
This graph shows which files directly or indirectly include this file:

Classes

struct  mqss::qrmci::Error
 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...

Functions

std::string_view mqss::qrmci::toString (Error::Kind kind) noexcept
 Name an error kind for a log line.

Detailed Description

The error type every std::expected in QRM&CI's public interfaces carries.

It exists so that a caller can tell "retry this later" from "reject this permanently" without matching on error prose.

Definition in file Error.h.

Function Documentation

◆ toString()

std::string_view mqss::qrmci::toString ( Error::Kind kind)
nodiscardnoexcept

Name an error kind for a log line.

Parameters
kindThe kind to name.
Returns
The enumerator's own name, e.g. NoBackendAvailable.