Na ovoj stranici

Utils::ResultError Class

class Utils::ResultError

Klasa ResultError koristi se za vraćanje pogreške, uključujući poruku o pogrešci za korisnika, iz funkcije. Više...

Header: #include <ResultError>

Javne funkcije

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

Detaljan opis

Osim praktičnog konstruktora sa stringom poruke o pogrešci, klasa pruža standardizirane poruke o pogreškama za interne pogreške putem enuma Utils::ResultSpecialErrorCode.

Vidi također Utils::Result i Utils::ResultSpecialErrorCode.

Dokumentacija funkcija člana

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

Stvara pogrešku s danim errorMessage om za korisnika.

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

Stvara pogrešku s standardiziranom porukom o pogrešci. Koristite errorMessage za pružanje dodatnih detalja o pogrešci.

Vidi također 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.