Skip to content

Commit 2667fde

Browse files
committed
Docs for all exceptions [skip ci]
1 parent b2310c4 commit 2667fde

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

docs/exceptions.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,36 @@ Each of the following exceptions has a `token` property, referencing the [`Token
1616

1717
::: jsonpath.JSONPathNameError
1818
handler: python
19+
20+
::: jsonpath.JSONPointerError
21+
handler: python
22+
23+
::: jsonpath.JSONPointerEncodeError
24+
handler: python
25+
26+
::: jsonpath.JSONPointerResolutionError
27+
handler: python
28+
29+
::: jsonpath.JSONPointerIndexError
30+
handler: python
31+
32+
::: jsonpath.JSONPointerKeyError
33+
handler: python
34+
35+
::: jsonpath.JSONPointerTypeError
36+
handler: python
37+
38+
::: jsonpath.RelativeJSONPointerError
39+
handler: python
40+
41+
::: jsonpath.RelativeJSONPointerIndexError
42+
handler: python
43+
44+
::: jsonpath.RelativeJSONPointerSyntaxError
45+
handler: python
46+
47+
::: jsonpath.JSONPatchError
48+
handler: python
49+
50+
::: jsonpath.JSONPatchTestFailure
51+
handler: python

jsonpath/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,14 @@
33
# SPDX-License-Identifier: MIT
44

55
from .env import JSONPathEnvironment
6+
from .exceptions import JSONPatchError
7+
from .exceptions import JSONPatchTestFailure
68
from .exceptions import JSONPathError
79
from .exceptions import JSONPathIndexError
810
from .exceptions import JSONPathNameError
911
from .exceptions import JSONPathSyntaxError
1012
from .exceptions import JSONPathTypeError
13+
from .exceptions import JSONPointerEncodeError
1114
from .exceptions import JSONPointerError
1215
from .exceptions import JSONPointerIndexError
1316
from .exceptions import JSONPointerKeyError
@@ -37,6 +40,8 @@
3740
"finditer_async",
3841
"finditer",
3942
"JSONPatch",
43+
"JSONPatchError",
44+
"JSONPatchTestFailure",
4045
"JSONPath",
4146
"JSONPathEnvironment",
4247
"JSONPathError",
@@ -46,6 +51,7 @@
4651
"JSONPathSyntaxError",
4752
"JSONPathTypeError",
4853
"JSONPointer",
54+
"JSONPointerEncodeError",
4955
"JSONPointerError",
5056
"JSONPointerIndexError",
5157
"JSONPointerKeyError",

0 commit comments

Comments
 (0)