Ezen az oldalon

Utils::ResultError Class

class Utils::ResultError

A ResultError osztályt arra használják, hogy egy függvényből a felhasználó számára hibaüzenettel ellátott hibát adjon vissza. Tovább...

Header: #include <ResultError>

Nyilvános függvények

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

Részletes leírás

A hibaüzenet-karaktersorozatot tartalmazó kényelmi konstruktor mellett az osztály az Utils::ResultSpecialErrorCode enumon keresztül szabványosított hibaüzeneteket biztosít a belső hibákhoz.

Lásd még: Utils::Result és Utils::ResultSpecialErrorCode.

Tagfüggvény-dokumentáció

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

Hibát generál a felhasználó számára a megadott „ errorMessage ” üzenettel.

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

Szabványos hibaüzenettel jelez egy hibát. A hiba további részleteinek megadásához használja a ` errorMessage ` parancsot.

Lásd még: 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.