diff options
author | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2014-12-05 13:50:35 +0100 |
---|---|---|
committer | Andreas Stöckel <andreas@somweyr.de> | 2014-12-05 13:50:35 +0100 |
commit | 33f4b36bb9de2d34e2448d6ae5ea705717a6095f (patch) | |
tree | 6a1f63ea7a9aa6a89433d1fbef3464baffbdfc86 /src/core/CSSParser.cpp | |
parent | a23c51bcb1b8d85b1ea06a7a16729fa4b87d8fd4 (diff) |
added no constructor for LoggableException
Diffstat (limited to 'src/core/CSSParser.cpp')
-rw-r--r-- | src/core/CSSParser.cpp | 23 |
1 files changed, 6 insertions, 17 deletions
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<SelectorNode> 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(); |