ResultError Class

class Utils::ResultError

The ResultError class is used for returning an error including an error message for the user from a function. More...

Header: #include <ResultError>

Public Functions

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

Detailed Description

In addition to a convenience constructor with an error message string, the class provides standardized error messages for internal errors via the Utils::ResultSpecialErrorCode enum.

See also Utils::Result and Utils::ResultSpecialErrorCode.

Member Function Documentation

ResultError::ResultError(const QString &errorMessage)

Creates an error with the given errorMessage for the user.

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

Creates an error with a standardized error message. Use errorMessage to provide further details on the error.

See also 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.