diff options
author | LianaHus <liana@ethdev.com> | 2015-10-02 20:41:40 +0800 |
---|---|---|
committer | LianaHus <liana@ethdev.com> | 2015-10-15 02:27:41 +0800 |
commit | 742e5b259a8c88e69f09ede7312673157cd77a1f (patch) | |
tree | 7d1d44995676d828e216078be7803e80cfaf7d0d /libsolidity/AST.cpp | |
parent | 95ad87267878a168dba98d5eb16e27dc9632465d (diff) | |
download | dexon-solidity-742e5b259a8c88e69f09ede7312673157cd77a1f.tar dexon-solidity-742e5b259a8c88e69f09ede7312673157cd77a1f.tar.gz dexon-solidity-742e5b259a8c88e69f09ede7312673157cd77a1f.tar.bz2 dexon-solidity-742e5b259a8c88e69f09ede7312673157cd77a1f.tar.lz dexon-solidity-742e5b259a8c88e69f09ede7312673157cd77a1f.tar.xz dexon-solidity-742e5b259a8c88e69f09ede7312673157cd77a1f.tar.zst dexon-solidity-742e5b259a8c88e69f09ede7312673157cd77a1f.zip |
added Error class for all kind of errors
Conflicts:
libsolidity/Exceptions.h
Diffstat (limited to 'libsolidity/AST.cpp')
-rw-r--r-- | libsolidity/AST.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libsolidity/AST.cpp b/libsolidity/AST.cpp index 490ae29a..f184e037 100644 --- a/libsolidity/AST.cpp +++ b/libsolidity/AST.cpp @@ -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 |