Utils::ResultError Class
class Utils::ResultErrorKlasa ResultError służy do zwracania przez funkcję błędu wraz z komunikatem o błędzie dla użytkownika. Więcej...
| Header: | #include <ResultError> |
Funkcje publiczne
| ResultError(const QString &errorMessage) | |
| ResultError(Utils::ResultSpecialErrorCode code, const QString &errorMessage = {}) |
Szczegółowy opis
Oprócz wygodnego konstruktora z ciągiem znaków zawierającym komunikat o błędzie, klasa udostępnia standardowe komunikaty o błędach wewnętrznych za pośrednictwem wyliczenia Utils::ResultSpecialErrorCode.
Zobacz także: Utils::Result oraz Utils::ResultSpecialErrorCode.
Dokumentacja funkcji składowych
[explicit] ResultError::ResultError(const QString &errorMessage)
Generuje komunikat o błędzie dla użytkownika z podanym adresem errorMessage.
ResultError::ResultError(Utils::ResultSpecialErrorCode code, const QString &errorMessage = {})
Generuje błąd z ustandaryzowanym komunikatem o błędzie. Aby podać dodatkowe szczegóły dotyczące błędu, należy skorzystać z funkcji ` errorMessage `.
Zobacz także: 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.