Utils::ResultError Class
class Utils::ResultErrorLa classe ResultError viene utilizzata per restituire, da una funzione, un errore che includa un messaggio di errore per l'utente. Per saperne di più...
| Header: | #include <ResultError> |
Funzioni pubbliche
| ResultError(const QString &errorMessage) | |
| ResultError(Utils::ResultSpecialErrorCode code, const QString &errorMessage = {}) |
Descrizione dettagliata
Oltre a un costruttore di comodità con una stringa di messaggio di errore, la classe fornisce messaggi di errore standardizzati per gli errori interni tramite l'enumerazione Utils::ResultSpecialErrorCode.
Vedi anche Utils::Result e Utils::ResultSpecialErrorCode.
Documentazione delle funzioni membro
[explicit] ResultError::ResultError(const QString &errorMessage)
Genera un errore per l'utente utilizzando l'errorMessage e specificata.
ResultError::ResultError(Utils::ResultSpecialErrorCode code, const QString &errorMessage = {})
Genera un errore con un messaggio di errore standardizzato. Utilizza ` errorMessage ` per fornire ulteriori dettagli sull'errore.
Vedi anche 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.