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:
|
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(
|
||||||
|
Loading…
Reference in New Issue
Block a user