Revision 789
Added by Aaron Marcuse-Kubitza almost 13 years ago
lib/xml_func.py | ||
---|---|---|
5 | 5 |
import exc |
6 | 6 |
import xml_dom |
7 | 7 |
|
8 |
class SyntaxException(Exception):
|
|
8 |
class SyntaxException(exc.ExceptionWithCause):
|
|
9 | 9 |
def __init__(self, cause=None): |
10 |
Exception.__init__(self, 'Invalid syntax in XML function: '+str(cause))
|
|
10 |
exc.ExceptionWithCause.__init__(self, 'Invalid XML function syntax')
|
|
11 | 11 |
|
12 | 12 |
def map_items(func, items): |
13 | 13 |
return [(name, func(value)) for name, value in items] |
Also available in: Unified diff
xml_func.py: SyntaxException: Use exc.ExceptionWithCause