diff --git a/ChangeLog b/ChangeLog index 31adaec2..0920659c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Tue Sep 28 13:07:37 CEST 2004 Daniel Veillard * valid.c TODO: applied patch from Malcolm Tredinnick fixing errata 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):