added Error class for all kind of errors

Conflicts:
	libsolidity/Exceptions.h
This commit is contained in:
LianaHus
2015-10-14 20:27:41 +02:00
parent 95ad872678
commit 742e5b259a
16 changed files with 107 additions and 76 deletions
+2 -2
View File
@@ -51,9 +51,9 @@ ASTAnnotation& ASTNode::annotation() const
return *m_annotation;
}
TypeError ASTNode::createTypeError(string const& _description) const
Error ASTNode::createTypeError(string const& _description) const
{
return TypeError() << errinfo_sourceLocation(location()) << errinfo_comment(_description);
return Error(Error::Type::TypeError) << errinfo_sourceLocation(location()) << errinfo_comment(_description);
}
map<FixedHash<4>, FunctionTypePointer> ContractDefinition::interfaceFunctions() const