Project

General

Profile

« Previous | Next » 

Revision 962

xml_func.py: Put SyntaxException's cause on same line as error message so that the whole error is treated as distinct by error_stats

View differences:

lib/xml_func.py
8 8
import term
9 9
import xml_dom
10 10

  
11
class SyntaxException(exc.ExceptionWithCause):
11
class SyntaxException(Exception):
12 12
    def __init__(self, cause):
13
        exc.ExceptionWithCause.__init__(self, 'Invalid XML function syntax',
14
            cause)
13
        Exception.__init__(self, 'Invalid XML function syntax: '
14
            +exc.str_(cause))
15 15

  
16 16
class FormatException(SyntaxException): pass
17 17

  

Also available in: Unified diff