summaryrefslogtreecommitdiff
path: root/rdflib/plugins/shared/jsonld/errors.py
diff options
context:
space:
mode:
authorAshley Sommer <Ashley.Sommer@csiro.au>2021-07-07 16:47:21 +1000
committerAshley Sommer <Ashley.Sommer@csiro.au>2021-07-07 16:47:21 +1000
commitec0c7c18e2a5d3d8652cf676c273eb7d7b97a48e (patch)
tree0fe4f6b6f936214e36ffbd78da94d1a98c0e3cda /rdflib/plugins/shared/jsonld/errors.py
parent538446e08f992b7fc333151367dd216611dcd8e3 (diff)
downloadrdflib-ec0c7c18e2a5d3d8652cf676c273eb7d7b97a48e.tar.gz
integrate jsonld code into rdflib core
Diffstat (limited to 'rdflib/plugins/shared/jsonld/errors.py')
-rw-r--r--rdflib/plugins/shared/jsonld/errors.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/rdflib/plugins/shared/jsonld/errors.py b/rdflib/plugins/shared/jsonld/errors.py
new file mode 100644
index 00000000..977d2d6f
--- /dev/null
+++ b/rdflib/plugins/shared/jsonld/errors.py
@@ -0,0 +1,9 @@
+# -*- coding: utf-8 -*-
+# https://github.com/RDFLib/rdflib-jsonld/blob/feature/json-ld-1.1/rdflib_jsonld/errors.py
+class JSONLDException(ValueError):
+ pass
+
+
+# http://www.w3.org/TR/json-ld-api/#idl-def-JsonLdErrorCode.{code-message}
+RECURSIVE_CONTEXT_INCLUSION = JSONLDException("recursive context inclusion")
+INVALID_REMOTE_CONTEXT = JSONLDException("invalid remote context")