summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJulian Berman <Julian@GrayVines.com>2023-02-23 15:35:44 +0200
committerJulian Berman <Julian@GrayVines.com>2023-02-23 16:12:31 +0200
commit19bdf6191a8e209584b18e7a3d4ec55cad9037e6 (patch)
treeb406a160255aaa084018ccde678a97b08b525edd /docs
parent3801d9aea0e044ff8b190bff750594aa18dee67e (diff)
downloadjsonschema-19bdf6191a8e209584b18e7a3d4ec55cad9037e6.tar.gz
Three more exception-related deprecations.
* RefResolutionError is deprecated entirely. Use referencing.Registry-based APIs, and catch referencing.exceptions.Unresolvable if you really want to ignore referencing related issues. * FormatError should now be imported from jsonschema.exceptions only, not from the package root. * ErrorTree should now be imported from jsonschema.exceptions only, not from the package root.
Diffstat (limited to 'docs')
-rw-r--r--docs/errors.rst1
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/errors.rst b/docs/errors.rst
index 7cfb502..5b0230f 100644
--- a/docs/errors.rst
+++ b/docs/errors.rst
@@ -273,6 +273,7 @@ error objects.
.. testcode::
+ from jsonschema.exceptions import ErrorTree
tree = ErrorTree(v.iter_errors(instance))
As you can see, `jsonschema.exceptions.ErrorTree` takes an