Revision 7578ab0a lib/errors.py
b/lib/errors.py | ||
---|---|---|
391 | 391 |
""" |
392 | 392 |
|
393 | 393 |
|
394 |
class QueryFilterParseError(ParseError): |
|
395 |
"""Error while parsing query filter. |
|
396 |
|
|
397 |
""" |
|
398 |
def GetDetails(self): |
|
399 |
"""Returns a list of strings with details about the error. |
|
400 |
|
|
401 |
""" |
|
402 |
try: |
|
403 |
(_, inner) = self.args |
|
404 |
except IndexError: |
|
405 |
return None |
|
406 |
|
|
407 |
return [str(inner.line), |
|
408 |
(" " * (inner.column - 1)) + "^", |
|
409 |
str(inner)] |
|
410 |
|
|
411 |
|
|
394 | 412 |
# errors should be added above |
395 | 413 |
|
396 | 414 |
|
Also available in: Unified diff