-
Notifications
You must be signed in to change notification settings - Fork 5
/
ErrorTable.h
118 lines (98 loc) · 2.94 KB
/
ErrorTable.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
#ifndef SBMLErrorTable_H__
#define SBMLErrorTable_H__
#include <sbml/SBMLError.h>
LIBSBML_CPP_NAMESPACE_BEGIN
/** @cond doxygenLibsbmlInternal */
typedef struct {
const char * ref_l1v1;
} referenceEntry;
typedef struct {
unsigned int code;
const char * shortMessage;
unsigned int category;
unsigned int l1v1_severity;
const char * message;
referenceEntry reference;
} sbmlErrorTableEntry;
static const sbmlErrorTableEntry sbmlErrorTable[] =
{
// 10000
{ SBMLUnknown,
"Encountered unknown internal libSBML error",
LIBSBML_CAT_INTERNAL,
LIBSBML_SEV_FATAL,
"Unrecognized error encountered by libSBML",
{"",
}
},
//10001
{
SBMLNotUTF8,
"File does not use UTF-8 encoding",
LIBSBML_CAT_SBML,
LIBSBML_SEV_ERROR,
"An SBML_Lang XML file must use UTF-8 as the character encoding. More "
"precisely, the 'encoding' attribute of the XML declaration at the "
"beginning of the XML data stream cannot have a value other than "
"'UTF-8'. An example valid declaration is "
"'<?xml version=\"1.0\" encoding=\"UTF-8\"?>'.",
{""
}
},
//10002
{
SBMLUnrecognizedElement,
"Encountered unrecognized element",
LIBSBML_CAT_SBML,
LIBSBML_SEV_ERROR,
"An SBML_Lang XML document must not contain undefined elements or attributes "
"in the SBML_Lang namespace. Documents containing unknown elements or "
"attributes placed in the SBML_Lang namespace do not conform to the SBML_Lang "
"specification.",
{""
}
},
//10003
{
SBMLNotSchemaConformant,
"Document does not conform to the SBML_Lang XML schema",
LIBSBML_CAT_SBML,
LIBSBML_SEV_ERROR,
"An SBML_Lang XML document must conform to the XML Schema for the corresponding "
"SBML_Lang Level, Version and Release. The XML Schema for SBML_Lang defines the "
"basic SBML_Lang object structure, the data types used by those objects, and the "
"order in which the objects may appear in an SBML_Lang document.",
{""
}
},
/* --------------------------------------------------------------------------
* Boundary marker. SBML_Lang specific errors.
* ----------------------------------------------------------------------- */
<add_specific_error_table/>
/* --------------------------------------------------------------------------
* Boundary marker. Application-specific codes should begin at 100000.
* ----------------------------------------------------------------------- */
//99994
{
SBMLUnknownCoreAttribute,
"Unknown attribute",
LIBSBML_CAT_INTERNAL,
LIBSBML_SEV_ERROR,
"An unknown attribute has been found.",
{""
}
},
//99999
{
SBMLCodesUpperBound,
"Upper boundary of libSBML-specific diagnostic codes",
LIBSBML_CAT_INTERNAL,
LIBSBML_SEV_NOT_APPLICABLE,
"Application-specific codes should begin at 100000.",
{""
}
}
};
LIBSBML_CPP_NAMESPACE_END
/** @endcond */
#endif /* !SBMLErrorTable_H__ */