summaryrefslogtreecommitdiff
path: root/rdflib/exceptions.py
diff options
context:
space:
mode:
authoreikeon <devnull@localhost>2005-04-03 21:25:47 +0000
committereikeon <devnull@localhost>2005-04-03 21:25:47 +0000
commit6c40150978cccd260c000b29d9a17f67540fed40 (patch)
tree35dcc9f784670aa5f6b8743570f8e8cafaa370ad /rdflib/exceptions.py
parent09845202e1365b128965774866a9782cfd362dec (diff)
downloadrdflib-6c40150978cccd260c000b29d9a17f67540fed40.tar.gz
added value and supporting func
Diffstat (limited to 'rdflib/exceptions.py')
-rw-r--r--rdflib/exceptions.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/rdflib/exceptions.py b/rdflib/exceptions.py
index b52402df..d3e42285 100644
--- a/rdflib/exceptions.py
+++ b/rdflib/exceptions.py
@@ -54,6 +54,13 @@ class ParserError(Error):
def __str__(self):
return self.msg
+
+class UniquenessError(Error) :
+ """A uniqueness assumption was made in the context, and that is not true"""
+ def __init__(self, n1, n2):
+ Error.__init__(self, "Uniqueness assumption is not fullfilled: %s, %s" % (n1, n2))
+
+
class SerializerDispatchNameError(Error):
"""No name set..."""
def __init__(self, msg):