From df0f3f2d143395b21162058c0b3ac274c7fc4df3 Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Thu, 1 Jan 2015 15:12:53 +0100 Subject: Replaced ParserException with more generic LoggerException --- src/plugins/css/CSSParser.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/plugins/css') diff --git a/src/plugins/css/CSSParser.cpp b/src/plugins/css/CSSParser.cpp index 5985047..9a041f2 100644 --- a/src/plugins/css/CSSParser.cpp +++ b/src/plugins/css/CSSParser.cpp @@ -137,7 +137,7 @@ void CSSParser::parseSelectors(Rooted root, case 2: // as the parseSelector is supposed to parse only a SelectorPath // there should not be more than one leaf. - throw ParserException{ + throw LoggableException{ "Internal Error: More than one leaf in SelectorPath!", tokenizer.getInput()}; } @@ -348,10 +348,10 @@ bool CSSParser::expect(int expectedType, CodeTokenizer &tokenizer, Token &t, if (end || t.tokenId != expectedType) { if (force) { if (end) { - throw ParserException{"Unexpected end of file!", + throw LoggableException{"Unexpected end of file!", tokenizer.getInput()}; } else { - throw ParserException{"Unexpected token!", + throw LoggableException{"Unexpected token!", tokenizer.getInput()}; } } else { -- cgit v1.2.3