Na této stránce

Utils::ResultError Class

class Utils::ResultError

Třída ResultError slouží k vrácení chyby včetně chybové zprávy pro uživatele z funkce. Více...

Header: #include <ResultError>

Veřejné funkce

ResultError(const QString &errorMessage)
ResultError(Utils::ResultSpecialErrorCode code, const QString &errorMessage = {})

Podrobný popis

Kromě praktického konstruktoru s řetězcem chybové zprávy poskytuje tato třída standardizované chybové zprávy pro interní chyby prostřednictvím výčtu Utils::ResultSpecialErrorCode.

Viz také Utils::Result a Utils::ResultSpecialErrorCode.

Dokumentace členských funkcí

[explicit] ResultError::ResultError(const QString &errorMessage)

Vytvoří pro uživatele chybu s uvedeným errorMessage.

ResultError::ResultError(Utils::ResultSpecialErrorCode code, const QString &errorMessage = {})

Vygeneruje chybu se standardizovanou chybovou zprávou. Pomocí errorMessage můžete uvést další podrobnosti o chybě.

Viz také Utils::ResultSpecialErrorCode.

Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.