Na tej strani

Utils::ResultError Class

class Utils::ResultError

Razred ResultError se uporablja za vračanje napake, vključno z napaknim sporočilom za uporabnika, iz funkcije. Več...

Header: #include <ResultError>

Javne funkcije

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

Podroben opis

Poleg priročnega konstruktorja z nizom sporočila o napaki razred prek seznama Utils::ResultSpecialErrorCode zagotavlja standardizirana sporočila o notranjih napakah.

Glejte tudi Utils::Result in Utils::ResultSpecialErrorCode.

Dokumentacija funkcij članov

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

Za uporabnika ustvari napako z navedeno povezavo errorMessage.

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

Ustvari napako s standardiziranim sporočilom o napaki. Uporabite errorMessage, da navedete dodatne podrobnosti o napaki.

Glejte tudi 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.