Statistics
| Branch: | Revision:

root / include / errmsg.h @ master

History | View | Annotate | Download (1.57 KB)

1 01873262 Georg Kunz
//==========================================================================
2
//  ERRMSG.H - part of
3
//                     OMNeT++/OMNEST
4
//            Discrete System Simulation in C++
5
//
6
//  Error code constants
7
//
8
//==========================================================================
9
10
/*--------------------------------------------------------------*
11
  Copyright (C) 1992-2008 Andras Varga
12
  Copyright (C) 2006-2008 OpenSim Ltd.
13

14
  This file is distributed WITHOUT ANY WARRANTY. See the file
15
  `license' for details on this and other legal matters.
16
*--------------------------------------------------------------*/
17
18
#ifndef __ERRMSG_H
19
#define __ERRMSG_H
20
21
#include "simkerneldefs.h"
22
23
NAMESPACE_BEGIN
24
25
/**
26
 * Error codes
27
 */
28
enum OppErrorCode
29
{
30
    eOK = 0,  // eOK must have zero numeric value
31
    eBACKSCHED,
32
    eBADCAST,
33
    eBADEXP,
34
    eBADINIT,
35
    eCANCEL,
36
    eCANTCOPY,
37
    eCANTDUP,
38
    eCANTPACK,
39
    eCUSTOM,
40
    eDIMLESS,
41
    eEBADARGS,
42
    eECANTCAST,
43
    eENDEDOK,
44
    eENDSIM,
45
    eENOPARENT,
46
    eESTKOFLOW,
47
    eESTKUFLOW,
48
    eFINISH,
49
    eGATEID,
50
    eINFLOOP,
51
    eLOCKED,
52
    eMODFIN,
53
    eMODINI,
54
    eNEGTIME,
55
    eNEGTOUT,
56
    eNOCHANDEF,
57
    eNONET,
58
    eNOPARENTMOD,
59
    eNOPARSIM,
60
    eNORECV,
61
    eNOSUCHNET,
62
    eNUMARGS,
63
    ePARAM,
64
    ePARAMSNOTREADY,
65
    eREALTIME,
66
    eSIMTIME,
67
    eSTATECHG,
68
    eSTKLOW,
69
    eSTOPSIMRCVD,
70
    eUSER,
71
    eWRONGSIM
72
};
73
74
/**
75
 * Provides error messages for error codes.
76
 *
77
 * @ingroup Internals
78
 */
79
class SIM_API cErrorMessages
80
{
81
  public:
82
    cErrorMessages() {}
83
    static const char *get(OppErrorCode e);
84
};
85
86
NAMESPACE_END
87
88
89
#endif