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.