Heart 1.3.842.34c2ab5
Heart is base back end library for your c++ Qt projects.
abstracterrorcodes.cpp
Go to the documentation of this file.
1/*
2 * Copyright (C) 2020-2024 QuasarApp.
3 * Distributed under the lgplv3 software license, see the accompanying
4 * Everyone is permitted to copy and distribute verbatim copies
5 * of this license document, but changing it is not allowed.
6*/
7
9
10namespace QH {
11
15namespace ErrorCodes {
16
18 switch (enumData) {
19 case NoError: {
20 return "Command executed or accepted successful.";
21 }
22
23 case InvalidRequest: {
24 return "The client node prepare and send invalid request to server. (invalid pacakage received)";
25 }
26
27 default: break;
28 }
29
30 return "Unknown Error ocurred";
31}
32
33}
34
35}
36
static QString toString(Code enumData)
toString This method have a cases for the translate all ErrorCodes of the QuasarApp Heart library.
unsigned char Code
Code This is alias for the unsigned char type.
@ InvalidRequest
The sender to remote nodes request is invalid. This is default value.
@ NoError
This reqest executed successful.
The QH namespace - QuasarApp Heart namespace. This namespace contains all classes of the Heart librar...
Definition heart.cpp:13