You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/api-guide/exceptions.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,14 +24,14 @@ An issue occurred with the network request.
24
24
25
25
The keys passed in a [`client.action()`][action] call did not reference a link in the document.
26
26
27
-
## ValidationError
27
+
## ParameterError
28
28
29
29
The parameters passed in a [`client.action()`][action] call did not match the set of required and optional fields made available by the link, or if the type of parameters passed could
30
30
not be supported by the given encoding on the link.
31
31
32
32
## ErrorMessage
33
33
34
-
The server returned a CoreAPI [Error][error].
34
+
The server returned a CoreAPI [Error][error] document.
By default the file will be deleted when this object goes out of scope. See
50
+
[the `DownloadCodec` documentation][download-codec] for more details.
51
+
52
+
---
53
+
8
54
## Negotiation utilities
9
55
10
56
The following functions are used to determine which of a set of transports
@@ -57,15 +103,15 @@ if an invalid value is passed.
57
103
58
104
Returns the value, coerced into a string primitive. Validates that the value that is suitable for use in URI-encoded path parameters. Empty strings and composite types such as dictionaries are disallowed.
59
105
60
-
May raise `ValidationError`.
106
+
May raise `ParameterError`.
61
107
62
108
### validate_query_param
63
109
64
110
**Signature**: `validate_query_param(value)`
65
111
66
112
Returns the value, coerced into a string primitive. Validates that the value is suitable for use in URL query parameters.
67
113
68
-
May raise `ValidationError`.
114
+
May raise `ParameterError`.
69
115
70
116
### validate_body_param
71
117
@@ -75,7 +121,7 @@ Returns the value, coerced into a primitive that is valid for the given encoding
75
121
76
122
Valid encodings are `application/json`, `x-www-form-urlencoded`, `multipart/form-data` and `application/octet-stream`.
77
123
78
-
May raise `ValidationError` for an invalid value, or `NetworkError` for an unsupported encoding.
124
+
May raise `ParameterError` for an invalid value, or `NetworkError` for an unsupported encoding.
79
125
80
126
### validate_form_param
81
127
@@ -85,4 +131,7 @@ Returns the value, coerced into a primitive that is valid for the given encoding
85
131
86
132
Valid encodings are `application/json`, `x-www-form-urlencoded`, `multipart/form-data`.
87
133
88
-
May raise `ValidationError`, or `NetworkError` for an unsupported encoding.
134
+
May raise `ParameterError`, or `NetworkError` for an unsupported encoding.
0 commit comments