このページでは

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.