diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2004-09-28 11:08:27 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2004-09-28 11:08:27 +0000 |
commit | a81355ef66bbbda49987309b748e5681075695ed (patch) | |
tree | e40ec989b0696cbc7587ddfed090814c2a6a5341 /python/libxml.py | |
parent | 807b4de28293518671393d0e26505ee0dddbe6a0 (diff) | |
download | libxml2-a81355ef66bbbda49987309b748e5681075695ed.tar.gz |
applied patch from Malcolm Tredinnick fixing python exception hierarchy
* python/libxml.py: applied patch from Malcolm Tredinnick fixing
python exception hierarchy #139824
Daniel
Diffstat (limited to 'python/libxml.py')
-rw-r--r-- | python/libxml.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/python/libxml.py b/python/libxml.py index 1036bd90..588e8624 100644 --- a/python/libxml.py +++ b/python/libxml.py @@ -1,28 +1,31 @@ import libxml2mod import types +# The root of all libxml2 errors. +class libxmlError(Exception): pass + # # Errors raised by the wrappers when some tree handling failed. # -class treeError: +class treeError(libxmlError): def __init__(self, msg): self.msg = msg def __str__(self): return self.msg -class parserError: +class parserError(libxmlError): def __init__(self, msg): self.msg = msg def __str__(self): return self.msg -class uriError: +class uriError(libxmlError): def __init__(self, msg): self.msg = msg def __str__(self): return self.msg -class xpathError: +class xpathError(libxmlError): def __init__(self, msg): self.msg = msg def __str__(self): |