Utils::ResultError Class
class Utils::ResultErrorKlassen ResultError används för att från en funktion returnera ett fel tillsammans med ett felmeddelande till användaren. Mer...
| Header: | #include <ResultError> |
Offentliga funktioner
| ResultError(const QString &errorMessage) | |
| ResultError(Utils::ResultSpecialErrorCode code, const QString &errorMessage = {}) |
Detaljerad beskrivning
Förutom en praktisk konstruktor med en sträng för felmeddelandet tillhandahåller klassen standardiserade felmeddelanden för interna fel via uppräkningen Utils::ResultSpecialErrorCode.
Se även Utils::Result och Utils::ResultSpecialErrorCode.
Dokumentation för medlemsfunktioner
[explicit] ResultError::ResultError(const QString &errorMessage)
Skapar ett fel med den angivna errorMessage för användaren.
ResultError::ResultError(Utils::ResultSpecialErrorCode code, const QString &errorMessage = {})
Skapar ett fel med ett standardiserat felmeddelande. Använd errorMessage för att ange ytterligare information om felet.
Se även 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.