Heart
1.4.918.d927d9c
Heart is base back end library for your c++ Qt projects.
Toggle main menu visibility
Loading...
Searching...
No Matches
abstracterrorcodes.cpp
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2020-2025 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
8
#include "
abstracterrorcodes.h
"
9
10
namespace
QH
{
11
15
namespace
ErrorCodes
{
16
17
QString
AbstractErrorCodesHelper::toString
(
Code
enumData) {
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
abstracterrorcodes.h
QH::ErrorCodes::AbstractErrorCodesHelper::toString
static QString toString(Code enumData)
toString This method have a cases for the translate all ErrorCodes of the QuasarApp Heart library.
Definition
abstracterrorcodes.cpp:17
QH::ErrorCodes
ErrorCodes This namesapce contains all error codes of the Heart Library.
Definition
abstracterrorcodes.cpp:15
QH::ErrorCodes::Code
unsigned char Code
Code This is alias for the unsigned char type.
Definition
abstracterrorcodes.h:70
QH::ErrorCodes::InvalidRequest
@ InvalidRequest
The sender to remote nodes request is invalid. This is default value.
Definition
abstracterrorcodes.h:82
QH::ErrorCodes::NoError
@ NoError
This reqest executed successful.
Definition
abstracterrorcodes.h:78
QH
The QH namespace - QuasarApp Heart namespace. This namespace contains all classes of the Heart librar...
Definition
heart.cpp:13
src
public
abstracterrorcodes.cpp
Generated by
1.18.0