QtCraft API C++ classes QML types Handbook

<common/core/QcResult.h>

Declarations at global scope in common/core/QcResult.h. More...

Header: #include <common/core/QcResult.h>

Types

QcResult
QcStatus

Functions

std::unexpected<QString> qcError(const QString &message)

Detailed Description

Type Documentation

[alias] template <typename T> QcResult

Result (a value of the type T) of an operation that can fail at a system boundary; the error is a human-readable message.

[alias] QcStatus

Result of an operation without a value that can fail; the error is a human-readable message.

Function Documentation

std::unexpected<QString> qcError(const QString &message)

Returns the error message, to return from a function with a QcResult or QcStatus.