diff options
author | Christian <c@ethdev.com> | 2014-10-24 01:22:30 +0800 |
---|---|---|
committer | Christian <c@ethdev.com> | 2014-10-24 03:37:57 +0800 |
commit | 094ee44f721054518ff384aef7cde1afe649636d (patch) | |
tree | 4b6935c867fd01c70ea8385778c2017067ec4dd6 /AST.h | |
parent | 781d7fd5149f6e24d60cd0327841ca9f2fca23af (diff) | |
download | dexon-solidity-094ee44f721054518ff384aef7cde1afe649636d.tar.gz dexon-solidity-094ee44f721054518ff384aef7cde1afe649636d.tar.zst dexon-solidity-094ee44f721054518ff384aef7cde1afe649636d.zip |
Use boost errinfo.
Diffstat (limited to 'AST.h')
-rw-r--r-- | AST.h | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -22,16 +22,16 @@ #pragma once -#include <boost/noncopyable.hpp> #include <string> #include <vector> #include <memory> - +#include <boost/noncopyable.hpp> #include <libsolidity/ASTForward.h> #include <libsolidity/BaseTypes.h> #include <libsolidity/Token.h> #include <libsolidity/Types.h> +#include <libsolidity/Exceptions.h> namespace dev { @@ -57,6 +57,11 @@ public: Location const& getLocation() const { return m_location; } +protected: + /// Creates a @ref TypeError exception and decorates it with the current location and + /// the given description + TypeError createTypeError(std::string const& _description); + private: Location m_location; }; |