mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
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:
parent
c5b81b66cd
commit
b1ead4af94
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user