From 33f4b36bb9de2d34e2448d6ae5ea705717a6095f Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Fri, 5 Dec 2014 13:50:35 +0100 Subject: added no constructor for LoggableException --- src/core/CSSParser.cpp | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-) (limited to 'src/core/CSSParser.cpp') diff --git a/src/core/CSSParser.cpp b/src/core/CSSParser.cpp index 3a86f45..b762844 100644 --- a/src/core/CSSParser.cpp +++ b/src/core/CSSParser.cpp @@ -124,11 +124,8 @@ void CSSParser::parseSelectors(Rooted root, // as the parseSelector is supposed to parse only a SelectorPath // there should not be more than one leaf. throw LoggableException{ - "Internal Error: More than one leaf in SelectorPath!", "", - // TODO: Line handling? - // tokenizer.getInput().getLine(), - // tokenizer.getInput().getColumn() - }; + "Internal Error: More than one leaf in SelectorPath!", true, + tokenizer.getInput()}; } // if we find a comma, we can proceed parsing selectors. Token t; @@ -293,19 +290,11 @@ bool CSSParser::expect(int expectedType, CodeTokenizer &tokenizer, Token &t, if (end || t.tokenId != expectedType) { if (force) { if (end) { - throw LoggableException{ - "Unexpected end of file!", "", - // TODO: Line handling? - // tokenizer.getInput().getLine(), - // tokenizer.getInput().getColumn() - }; + throw LoggableException{"Unexpected end of file!", true, + tokenizer.getInput()}; } else { - throw LoggableException{ - "Unexpected token!", "", - // TODO: Line handling? - // tokenizer.getInput().getLine(), - // tokenizer.getInput().getColumn() - }; + throw LoggableException{"Unexpected token!", true, + tokenizer.getInput()}; } } else { tokenizer.resetPeek(); -- cgit v1.2.3