diff options
author | Julian Berman <Julian@GrayVines.com> | 2023-02-23 15:35:44 +0200 |
---|---|---|
committer | Julian Berman <Julian@GrayVines.com> | 2023-02-23 16:12:31 +0200 |
commit | 19bdf6191a8e209584b18e7a3d4ec55cad9037e6 (patch) | |
tree | b406a160255aaa084018ccde678a97b08b525edd /docs | |
parent | 3801d9aea0e044ff8b190bff750594aa18dee67e (diff) | |
download | jsonschema-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.rst | 1 |
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 |