Utils::ResultError Class | Extending Qt Creator Manual
Description: The ResultError class is used for returning an error including an error message for the user from a function.

- Extending Qt Creator Manual
- QtCreator
- ResultError
- Extending Qt Creator Manual 19.0.0

# Utils::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>`

- List of all members, including inherited members

## 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.