Order Error::Severity enum from most to least severe

- Also reorder Error::Type to match initial values for some consistency
This commit is contained in:
Kamil Śliwak
2023-08-23 18:00:01 +02:00
parent c5b81b66cd
commit b1ead4af94
+5 -4
View File
@@ -170,6 +170,8 @@ class Error: virtual public util::Exception
public:
enum class Type
{
Info,
Warning,
CodeGenerationError,
DeclarationError,
DocstringParsingError,
@@ -185,15 +187,14 @@ public:
UnimplementedFeatureError,
YulException,
SMTLogicException,
Warning,
Info
};
enum class Severity
{
Error,
// NOTE: We rely on these being ordered from least to most severe.
Info,
Warning,
Info
Error,
};
Error(