diff options
author | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2015-01-01 15:12:53 +0100 |
---|---|---|
committer | Andreas Stöckel <andreas@somweyr.de> | 2015-01-01 15:12:53 +0100 |
commit | df0f3f2d143395b21162058c0b3ac274c7fc4df3 (patch) | |
tree | 162820c0c2e827608483d6aaccedd1a06f9095a7 /src/core | |
parent | 5e46e4ebaafff2bb02d595162ded75593cc2ab57 (diff) |
Replaced ParserException with more generic LoggerException
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/parser/Parser.hpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/core/parser/Parser.hpp b/src/core/parser/Parser.hpp index e155cfd..40ac87a 100644 --- a/src/core/parser/Parser.hpp +++ b/src/core/parser/Parser.hpp @@ -45,14 +45,6 @@ namespace parser { // TODO: Implement a proper Mimetype class /** - * Exception to be thrown whenever an error occurs inside a specific parser. - */ -class ParserException : public LoggableException { -public: - using LoggableException::LoggableException; -}; - -/** * Struct containing the objects that are passed to a parser instance. */ struct ParserContext { @@ -105,6 +97,11 @@ public: : ParserContext(scope, registry, logger, manager), scope(nullptr), registry(logger){}; + + StandaloneParserContext(Logger &l) + : ParserContext(scope, registry, l, manager), + scope(nullptr), + registry(l){}; }; /** |