Skip to content

Commit f6b23e1

Browse files
author
Daniel Marjamäki
committed
ErrorLogger: Added severities for inconclusive error and inconclusive warning
1 parent 5621237 commit f6b23e1

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

lib/errorlogger.h

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,13 @@ class Severity
8888
* Debug message.
8989
* Debug-mode message useful for the developers.
9090
*/
91-
debug
91+
debug,
92+
93+
/** inconclusive error */
94+
inconclusive_error,
95+
96+
/** inconclusive warning */
97+
inconclusive_warning
9298
};
9399

94100
static std::string toString(SeverityType severity)
@@ -111,6 +117,10 @@ class Severity
111117
return "information";
112118
case debug:
113119
return "debug";
120+
case inconclusive_error:
121+
return "inconclusive error";
122+
case inconclusive_warning:
123+
return "inconclusive warning";
114124
};
115125
return "???";
116126
}
@@ -134,6 +144,10 @@ class Severity
134144
return information;
135145
if (severity == "debug")
136146
return debug;
147+
if (severity == "inconclusive error")
148+
return inconclusive_error;
149+
if (severity == "inconclusive warning")
150+
return inconclusive_warning;
137151
return none;
138152
}
139153
};

0 commit comments

Comments
 (0)