diff options
Diffstat (limited to 'libsolidity/interface/Exceptions.cpp')
-rw-r--r-- | libsolidity/interface/Exceptions.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libsolidity/interface/Exceptions.cpp b/libsolidity/interface/Exceptions.cpp index 406ebbfb..968a24ad 100644 --- a/libsolidity/interface/Exceptions.cpp +++ b/libsolidity/interface/Exceptions.cpp @@ -64,6 +64,14 @@ Error::Error(Type _type, SourceLocation const& _location, string const& _descrip *this << errinfo_comment(_description); } +Error::Error(Error::Type _type, const std::string& _description, const SourceLocation& _location): + Error(_type) +{ + if (!_location.isEmpty()) + *this << errinfo_sourceLocation(_location); + *this << errinfo_comment(_description); +} + string Exception::lineInfo() const { char const* const* file = boost::get_error_info<boost::throw_file>(*this); |