mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
added Error class for all kind of errors
Conflicts: libsolidity/Exceptions.h
This commit is contained in:
@@ -1156,9 +1156,9 @@ ASTPointer<ParameterList> Parser::createEmptyParameterList()
|
||||
return nodeFactory.createNode<ParameterList>(vector<ASTPointer<VariableDeclaration>>());
|
||||
}
|
||||
|
||||
ParserError Parser::createParserError(string const& _description) const
|
||||
Error Parser::createParserError(string const& _description) const
|
||||
{
|
||||
return ParserError() <<
|
||||
return Error(Error::Type::ParserError) <<
|
||||
errinfo_sourceLocation(SourceLocation(position(), position(), sourceName())) <<
|
||||
errinfo_comment(_description);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user