From 0732be88d054db33fa0ca479eab9988c8e6be42e Mon Sep 17 00:00:00 2001 From: Mike Hommey Date: Wed, 13 Oct 2004 08:57:08 +0000 Subject: Load /tmp/tmp.zzO3vU/libxml2-2.6.14 into packages/libxml2/branches/upstream/current. --- python/libxml.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'python/libxml.py') 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): -- cgit v1.2.3