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-21 10:22:23 +02:00
parent c5b81b66cd
commit b1ead4af94

View File

@ -170,6 +170,8 @@ class Error: virtual public util::Exception
public: public:
enum class Type enum class Type
{ {
Info,
Warning,
CodeGenerationError, CodeGenerationError,
DeclarationError, DeclarationError,
DocstringParsingError, DocstringParsingError,
@ -185,15 +187,14 @@ public:
UnimplementedFeatureError, UnimplementedFeatureError,
YulException, YulException,
SMTLogicException, SMTLogicException,
Warning,
Info
}; };
enum class Severity enum class Severity
{ {
Error, // NOTE: We rely on these being ordered from least to most severe.
Info,
Warning, Warning,
Info Error,
}; };
Error( Error(