Analysis refactoring.

This commit is contained in:
chriseth committed 2017-03-03 15:41:01 +01:00
1 parent 98e343b3fc
commit 7f2def8971
7 files changed
+468 -117

No files matched your search

+8
View File
@@ -58,6 +58,14 @@ Error::Error(Type _type): m_type(_type)
}
}
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);