Heart 1.4.984.b4712811
Heart is base back end library for your c++ Qt projects.
Loading...
Searching...
No Matches
abstracterrorcodes.cpp
Go to the documentation of this file.
1/*
2 * Copyright (C) 2020-2027 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 package received)";
25 }
26
27 default: break;
28 }
29
30 return "Unknown Error occurred";
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.
ErrorCodes This namespace contains all error codes of the 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 request executed successful.
The QH namespace - QuasarApp Heart namespace. This namespace contains all classes of the Heart librar...
Definition heart.cpp:13