summaryrefslogtreecommitdiff
path: root/python/libxml.py
diff options
context:
space:
mode:
authorMike Hommey <mh@glandium.org>2004-10-13 08:57:08 +0000
committerMike Hommey <mh@glandium.org>2004-10-13 08:57:08 +0000
commit0732be88d054db33fa0ca479eab9988c8e6be42e (patch)
tree8b9cf70e04bd32115caebeb74cb0d841d1eced3b /python/libxml.py
parent09deb06614c3408ec0816a3c88920138bae2083c (diff)
downloadlibxml2-0732be88d054db33fa0ca479eab9988c8e6be42e.tar.gz
Load /tmp/tmp.zzO3vU/libxml2-2.6.14 intoupstream/2.6.14
packages/libxml2/branches/upstream/current.
Diffstat (limited to 'python/libxml.py')
-rw-r--r--python/libxml.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/python/libxml.py b/python/libxml.py
index 1036bd9..588e862 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):