File: errors.py

package info (click to toggle)
python-rdflib-jsonld 0.4.0-2~bpo8%2B1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-backports
  • size: 1,384 kB
  • sloc: python: 1,478; makefile: 132
file content (6 lines) | stat: -rw-r--r-- 264 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
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")