OMNeT++ API
6.1
Discrete Event Simulation Library
errmsg.h
1
//==========================================================================
2
// ERRMSG.H - part of
3
// OMNeT++/OMNEST
4
// Discrete System Simulation in C++
5
//
6
//==========================================================================
7
8
/*--------------------------------------------------------------*
9
Copyright (C) 1992-2017 Andras Varga
10
Copyright (C) 2006-2017 OpenSim Ltd.
11
12
This file is distributed WITHOUT ANY WARRANTY. See the file
13
`license' for details on this and other legal matters.
14
*--------------------------------------------------------------*/
15
16
#ifndef __OMNETPP_ERRMSG_H
17
#define __OMNETPP_ERRMSG_H
18
19
#include "simkerneldefs.h"
20
21
namespace
omnetpp {
22
26
enum
ErrorCode
27
{
28
E_OK = 0,
// E_OK must have zero numeric value
29
E_BACKSCHED,
30
E_BADCAST,
31
E_BADASSIGN,
32
E_BADEXP,
33
E_BADINIT,
34
E_CANCEL,
35
E_CANTCOPY,
36
E_CANTDUP,
37
E_CANTPACK,
38
E_CUSTOM,
39
E_DIMLESS,
40
E_EBADARGS,
41
E_ENDEDOK,
42
E_ENDSIM,
43
E_ENOPARENT,
44
E_ESTKOFLOW,
45
E_ESTKUFLOW,
46
E_FINISH,
47
E_GATEID,
48
E_INFLOOP,
49
E_LOCKED,
50
E_MISSINGTAG,
51
E_MODFIN,
52
E_MODINI,
53
E_NEGTIME,
54
E_NEGTOUT,
55
E_NOCHANDEF,
56
E_NOPARENTMOD,
57
E_NOPARSIM,
58
E_NORECV,
59
E_NOSUCHNET,
60
E_NUMARGS,
61
E_PARAM,
62
E_PARNOTSET,
63
E_PARAMSNOTREADY,
64
E_CPUTIME,
65
E_REALTIME,
66
E_SIMTIME,
67
E_STATECHG,
68
E_STKLOW,
69
E_STOPSIMRCVD,
70
E_USER,
71
E_WRONGSIM
72
};
73
79
class
SIM_API
cErrorMessages
80
{
81
public
:
82
cErrorMessages
() {}
83
static
const
char
*get(ErrorCode e);
84
};
85
86
}
// namespace omnetpp
87
88
89
#endif
omnetpp::cErrorMessages
Provides error messages for error codes.
Definition:
errmsg.h:79
include
omnetpp
errmsg.h
Generated by
1.8.17