Utils::ResultError Class
class Utils::ResultErrorDie Klasse „ResultError“ dient dazu, aus einer Funktion einen Fehler einschließlich einer Fehlermeldung für den Benutzer zurückzugeben. Mehr...
| Header: | #include <ResultError> |
Öffentliche Funktionen
| ResultError(const QString &errorMessage) | |
| ResultError(Utils::ResultSpecialErrorCode code, const QString &errorMessage = {}) |
Ausführliche Beschreibung
Neben einem Komfortkonstruktor mit einer Fehlermeldungszeichenfolge stellt die Klasse über die Enumeration „ Utils::ResultSpecialErrorCode “ standardisierte Fehlermeldungen für interne Fehler bereit.
Siehe auch „ Utils::Result “ und „ Utils::ResultSpecialErrorCode “.
Dokumentation zu den Mitgliedsfunktionen
[explicit] ResultError::ResultError(const QString &errorMessage)
Erzeugt für den Benutzer einen Fehler mit dem angegebenen „ errorMessage “.
ResultError::ResultError(Utils::ResultSpecialErrorCode code, const QString &errorMessage = {})
Erzeugt einen Fehler mit einer standardisierten Fehlermeldung. Verwenden Sie „ errorMessage “, um weitere Details zum Fehler anzugeben.
Siehe auch „ 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.