ArnLib
4.0.x
Active Registry Network
ArnError.hpp
Go to the documentation of this file.
1
// Copyright (C) 2010-2022 Michael Wiklund.
2
// All rights reserved.
3
// Contact: arnlib@wiklunden.se
4
//
5
// This file is part of the ArnLib - Active Registry Network.
6
// Parts of ArnLib depend on Qt and/or other libraries that have their own
7
// licenses. Usage of these other libraries is subject to their respective
8
// license agreements.
9
//
10
// GNU Lesser General Public License Usage
11
// This file may be used under the terms of the GNU Lesser General Public
12
// License version 2.1 as published by the Free Software Foundation and
13
// appearing in the file LICENSE_LGPL.txt included in the packaging of this
14
// file. In addition, as a special exception, you may use the rights described
15
// in the Nokia Qt LGPL Exception version 1.1, included in the file
16
// LGPL_EXCEPTION.txt in this package.
17
//
18
// GNU General Public License Usage
19
// Alternatively, this file may be used under the terms of the GNU General Public
20
// License version 3.0 as published by the Free Software Foundation and appearing
21
// in the file LICENSE_GPL.txt included in the packaging of this file.
22
//
23
// Other Usage
24
// Alternatively, this file may be used in accordance with the terms and conditions
25
// contained in a signed written agreement between you and Michael Wiklund.
26
//
27
// This program is distributed in the hope that it will be useful, but WITHOUT ANY
28
// WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
29
// PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
30
//
31
32
#ifndef ARNERROR_HPP
33
#define ARNERROR_HPP
34
35
#include "
MQFlags.hpp
"
36
37
38
class
ArnError
39
{
40
Q_GADGET
41
Q_ENUMS(
E
)
42
public
:
43
enum
E
{
44
Ok
= 0,
45
Info
= 1,
46
Warning
= 2,
47
Undef
= 15,
48
Err_Undef
= 15,
// MW: TODO To be removed
49
CreateError
= 16,
50
Err_Custom
= 16,
// MW: TODO To be removed
51
NotFound
,
52
NotOpen
,
53
AlreadyExist
,
54
AlreadyOpen
,
55
Retired
,
56
NotMainThread
,
57
FolderNotOpen
,
58
ItemNotOpen
,
59
ItemNotSet
,
60
ConnectionError
,
61
RecUnknown
,
62
ScriptError
,
63
RpcInvokeError
,
64
RpcReceiveError
,
65
LoginBad
,
66
RecNotExpected
,
67
OpNotAllowed
,
68
Err_N
// Last (number of error codes)
69
};
70
MQ_DECLARE_ENUMTXT
(
ArnError
)
71
72
struct
StdCode
// MW: TODO To be removed ?
73
{
74
enum
E
{
75
Ok
= 0,
76
Info
= 1,
77
Warning
= 2,
78
Err_Undef
= 15,
79
Err_Custom
= 16
80
};
81
};
82
};
83
84
#endif // ARNERROR_HPP
ArnError::RpcInvokeError
Definition:
ArnError.hpp:63
ArnError::FolderNotOpen
Definition:
ArnError.hpp:57
ArnError::Err_Custom
Definition:
ArnError.hpp:50
ArnError::NotOpen
Definition:
ArnError.hpp:52
ArnError
Definition:
ArnError.hpp:38
ArnError::AlreadyExist
Definition:
ArnError.hpp:53
MQFlags.hpp
ArnError::Err_N
Definition:
ArnError.hpp:68
ArnError::Retired
Definition:
ArnError.hpp:55
ArnError::StdCode
Definition:
ArnError.hpp:72
ArnError::ItemNotSet
Definition:
ArnError.hpp:59
ArnError::ConnectionError
Definition:
ArnError.hpp:60
ArnError::Undef
Definition:
ArnError.hpp:47
ArnError::Ok
Definition:
ArnError.hpp:44
ArnError::RpcReceiveError
Definition:
ArnError.hpp:64
ArnError::LoginBad
Definition:
ArnError.hpp:65
ArnError::StdCode::E
E
Definition:
ArnError.hpp:74
ArnError::AlreadyOpen
Definition:
ArnError.hpp:54
ArnError::Warning
Definition:
ArnError.hpp:46
ArnError::Err_Undef
Definition:
ArnError.hpp:48
ArnError::E
E
Definition:
ArnError.hpp:43
ArnError::CreateError
Definition:
ArnError.hpp:49
MQ_DECLARE_ENUMTXT
#define MQ_DECLARE_ENUMTXT(EStruct)
Enums text.
Definition:
MQFlags.hpp:102
ArnError::ScriptError
Definition:
ArnError.hpp:62
ArnError::NotFound
Definition:
ArnError.hpp:51
ArnError::RecNotExpected
Definition:
ArnError.hpp:66
ArnError::RecUnknown
Definition:
ArnError.hpp:61
ArnError::NotMainThread
Definition:
ArnError.hpp:56
ArnError::OpNotAllowed
Definition:
ArnError.hpp:67
ArnError::ItemNotOpen
Definition:
ArnError.hpp:58
ArnError::Info
Definition:
ArnError.hpp:45
src
ArnInc
ArnError.hpp
Generated on Tue Feb 22 2022 01:34:35 for ArnLib by
1.8.14