mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-30 22:43:14 +03:00
applied patch from Malcolm Tredinnick fixing python exception hierarchy
* python/libxml.py: applied patch from Malcolm Tredinnick fixing python exception hierarchy #139824 Daniel
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
Tue Sep 28 13:07:37 CEST 2004 Daniel Veillard <daniel@veillard.com
|
||||||
|
|
||||||
|
* python/libxml.py: applied patch from Malcolm Tredinnick fixing
|
||||||
|
python exception hierarchy #139824
|
||||||
|
|
||||||
Sun Sep 26 16:40:24 CEST 2004 Daniel Veillard <daniel@veillard.com>
|
Sun Sep 26 16:40:24 CEST 2004 Daniel Veillard <daniel@veillard.com>
|
||||||
|
|
||||||
* valid.c TODO: applied patch from Malcolm Tredinnick fixing errata
|
* valid.c TODO: applied patch from Malcolm Tredinnick fixing errata
|
||||||
|
@ -1,28 +1,31 @@
|
|||||||
import libxml2mod
|
import libxml2mod
|
||||||
import types
|
import types
|
||||||
|
|
||||||
|
# The root of all libxml2 errors.
|
||||||
|
class libxmlError(Exception): pass
|
||||||
|
|
||||||
#
|
#
|
||||||
# Errors raised by the wrappers when some tree handling failed.
|
# Errors raised by the wrappers when some tree handling failed.
|
||||||
#
|
#
|
||||||
class treeError:
|
class treeError(libxmlError):
|
||||||
def __init__(self, msg):
|
def __init__(self, msg):
|
||||||
self.msg = msg
|
self.msg = msg
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return self.msg
|
return self.msg
|
||||||
|
|
||||||
class parserError:
|
class parserError(libxmlError):
|
||||||
def __init__(self, msg):
|
def __init__(self, msg):
|
||||||
self.msg = msg
|
self.msg = msg
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return self.msg
|
return self.msg
|
||||||
|
|
||||||
class uriError:
|
class uriError(libxmlError):
|
||||||
def __init__(self, msg):
|
def __init__(self, msg):
|
||||||
self.msg = msg
|
self.msg = msg
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return self.msg
|
return self.msg
|
||||||
|
|
||||||
class xpathError:
|
class xpathError(libxmlError):
|
||||||
def __init__(self, msg):
|
def __init__(self, msg):
|
||||||
self.msg = msg
|
self.msg = msg
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
|
Reference in New Issue
Block a user