We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2dcf229 commit db1036dCopy full SHA for db1036d
src/responses/src/error.rs
@@ -160,6 +160,11 @@ quick_error! {
160
description("parsing failed")
161
display("parsing failed: '{}'", reason)
162
}
163
+ /** There was an illegal argument in the request. */
164
+ IllegalArgument { reason: String } {
165
+ description("illegal argument")
166
+ display("illegal argument: '{}'", reason)
167
+ }
168
#[doc(hidden)]
169
__NonExhaustive {}
170
@@ -247,6 +252,13 @@ impl From<Map<String, Value>> for ParsedApiError {
247
252
reason: reason.into(),
248
253
})
249
254
255
+ "illegal_argument_exception" => {
256
+ let reason = error_key!(obj[reason]: |v| v.as_str());
257
+
258
+ ParsedApiError::Known(ApiError::IllegalArgument {
259
+ reason: reason.into(),
260
+ })
261
250
262
_ => ParsedApiError::Unknown(obj),
251
263
264
0 commit comments