Error constructor.

This commit is contained in:
chriseth
2017-03-06 14:27:18 +01:00
parent c89a579809
commit 960b5fa032
2 changed files with 12 additions and 2 deletions
+5 -1
View File
@@ -53,7 +53,11 @@ public:
Warning
};
explicit Error(Type _type);
explicit Error(
Type _type,
SourceLocation const& _location = SourceLocation(),
std::string const& _description = std::string()
);
Type type() const { return m_type; }
std::string const& typeName() const { return m_typeName; }