На цій сторінці

Utils::ResultError Class

class Utils::ResultError

Клас ResultError використовується для повернення з функції помилки разом із повідомленням про помилку для користувача. Детальніше...

Header: #include <ResultError>

Публічні функції

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

Детальний опис

Окрім зручного конструктора з рядком повідомлення про помилку, клас надає стандартизовані повідомлення про внутрішні помилки через перелік Utils::ResultSpecialErrorCode.

Див. також « Utils::Result » та « Utils::ResultSpecialErrorCode ».

Документація до функцій-членів

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

Створює для користувача повідомлення про помилку із вказаним посиланням errorMessage.

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

Створює помилку зі стандартизованим повідомленням про помилку. Використовуйте errorMessage, щоб надати додаткові деталі щодо помилки.

Див. також 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.