Nesta página

Utils::ResultError Class

class Utils::ResultError

A classe ResultError é usada para retornar um erro, incluindo uma mensagem de erro para o usuário, a partir de uma função. Mais...

Header: #include <ResultError>

Funções públicas

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

Descrição detalhada

Além de um construtor de conveniência com uma string de mensagem de erro, a classe fornece mensagens de erro padronizadas para erros internos por meio da enumeração ` Utils::ResultSpecialErrorCode `.

Veja também ` Utils::Result ` e ` Utils::ResultSpecialErrorCode`.

Documentação das funções-membro

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

Gera um erro com o código de erro “ errorMessage ” fornecido para o usuário.

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

Gera um erro com uma mensagem de erro padronizada. Use ` errorMessage ` para fornecer mais detalhes sobre o erro.

Veja também 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.