@@ -132,13 +132,12 @@ class DuplicateResourceCreation(BadRequestError):
132
132
133
133
def __init__ (self , message : str , * , body : object , response : httpx .Response ) -> None :
134
134
data = cast (Mapping [str , object ], body if is_mapping (body ) else {})
135
- title = cast (Any , data .get ("title" ))
136
- super ().__init__ (title or message , response = response , body = body )
135
+ super ().__init__ (message , response = response , body = body )
137
136
138
- self .title = title
139
137
self .status = cast (Any , data .get ("status" ))
140
138
self .type = cast (Any , data .get ("type" ))
141
139
self .detail = cast (Any , data .get ("detail" ))
140
+ self .title = cast (Any , data .get ("title" ))
142
141
143
142
144
143
class FeatureNotAvailable (BadRequestError ):
@@ -152,13 +151,12 @@ class FeatureNotAvailable(BadRequestError):
152
151
153
152
def __init__ (self , message : str , * , body : object , response : httpx .Response ) -> None :
154
153
data = cast (Mapping [str , object ], body if is_mapping (body ) else {})
155
- title = cast (Any , data .get ("title" ))
156
- super ().__init__ (title or message , response = response , body = body )
154
+ super ().__init__ (message , response = response , body = body )
157
155
158
- self .title = title
159
156
self .status = cast (Any , data .get ("status" ))
160
157
self .type = cast (Any , data .get ("type" ))
161
158
self .detail = cast (Any , data .get ("detail" ))
159
+ self .title = cast (Any , data .get ("title" ))
162
160
163
161
164
162
class RequestValidationError (BadRequestError ):
@@ -174,14 +172,13 @@ class RequestValidationError(BadRequestError):
174
172
175
173
def __init__ (self , message : str , * , body : object , response : httpx .Response ) -> None :
176
174
data = cast (Mapping [str , object ], body if is_mapping (body ) else {})
177
- title = cast (Any , data .get ("title" ))
178
- super ().__init__ (title or message , response = response , body = body )
175
+ super ().__init__ (message , response = response , body = body )
179
176
180
- self .title = title
181
177
self .status = cast (Any , data .get ("status" ))
182
178
self .type = cast (Any , data .get ("type" ))
183
179
self .validation_errors = cast (Any , data .get ("validation_errors" ))
184
180
self .detail = cast (Any , data .get ("detail" ))
181
+ self .title = cast (Any , data .get ("title" ))
185
182
186
183
187
184
class OrbAuthenticationError (AuthenticationError ):
@@ -195,13 +192,12 @@ class OrbAuthenticationError(AuthenticationError):
195
192
196
193
def __init__ (self , message : str , * , body : object , response : httpx .Response ) -> None :
197
194
data = cast (Mapping [str , object ], body if is_mapping (body ) else {})
198
- title = cast (Any , data .get ("title" ))
199
- super ().__init__ (title or message , response = response , body = body )
195
+ super ().__init__ (message , response = response , body = body )
200
196
201
- self .title = title
202
197
self .status = cast (Any , data .get ("status" ))
203
198
self .type = cast (Any , data .get ("type" ))
204
199
self .detail = cast (Any , data .get ("detail" ))
200
+ self .title = cast (Any , data .get ("title" ))
205
201
206
202
207
203
class ResourceNotFound (NotFoundError ):
@@ -215,11 +211,10 @@ class ResourceNotFound(NotFoundError):
215
211
216
212
def __init__ (self , message : str , * , body : object , response : httpx .Response ) -> None :
217
213
data = cast (Mapping [str , object ], body if is_mapping (body ) else {})
218
- title = cast (Any , data .get ("title" ))
219
- super ().__init__ (title or message , response = response , body = body )
214
+ super ().__init__ (message , response = response , body = body )
220
215
221
- self .title = title
222
216
self .status = cast (Any , data .get ("status" ))
217
+ self .title = cast (Any , data .get ("title" ))
223
218
self .type = cast (Any , data .get ("type" ))
224
219
self .detail = cast (Any , data .get ("detail" ))
225
220
@@ -235,13 +230,12 @@ class URLNotFound(NotFoundError):
235
230
236
231
def __init__ (self , message : str , * , body : object , response : httpx .Response ) -> None :
237
232
data = cast (Mapping [str , object ], body if is_mapping (body ) else {})
238
- title = cast (Any , data .get ("title" ))
239
- super ().__init__ (title or message , response = response , body = body )
233
+ super ().__init__ (message , response = response , body = body )
240
234
241
- self .title = title
242
235
self .status = cast (Any , data .get ("status" ))
243
236
self .type = cast (Any , data .get ("type" ))
244
237
self .detail = cast (Any , data .get ("detail" ))
238
+ self .title = cast (Any , data .get ("title" ))
245
239
246
240
247
241
class ResourceConflict (ConflictError ):
@@ -255,13 +249,12 @@ class ResourceConflict(ConflictError):
255
249
256
250
def __init__ (self , message : str , * , body : object , response : httpx .Response ) -> None :
257
251
data = cast (Mapping [str , object ], body if is_mapping (body ) else {})
258
- title = cast (Any , data .get ("title" ))
259
- super ().__init__ (title or message , response = response , body = body )
252
+ super ().__init__ (message , response = response , body = body )
260
253
261
- self .title = title
262
254
self .status = cast (Any , data .get ("status" ))
263
255
self .type = cast (Any , data .get ("type" ))
264
256
self .detail = cast (Any , data .get ("detail" ))
257
+ self .title = cast (Any , data .get ("title" ))
265
258
266
259
267
260
class RequestTooLarge (APIStatusError ):
@@ -275,13 +268,12 @@ class RequestTooLarge(APIStatusError):
275
268
276
269
def __init__ (self , message : str , * , body : object , response : httpx .Response ) -> None :
277
270
data = cast (Mapping [str , object ], body if is_mapping (body ) else {})
278
- title = cast (Any , data .get ("title" ))
279
- super ().__init__ (title or message , response = response , body = body )
271
+ super ().__init__ (message , response = response , body = body )
280
272
281
- self .title = title
282
273
self .status = cast (Any , data .get ("status" ))
283
274
self .type = cast (Any , data .get ("type" ))
284
275
self .detail = cast (Any , data .get ("detail" ))
276
+ self .title = cast (Any , data .get ("title" ))
285
277
286
278
287
279
class ResourceTooLarge (APIStatusError ):
@@ -295,13 +287,12 @@ class ResourceTooLarge(APIStatusError):
295
287
296
288
def __init__ (self , message : str , * , body : object , response : httpx .Response ) -> None :
297
289
data = cast (Mapping [str , object ], body if is_mapping (body ) else {})
298
- title = cast (Any , data .get ("title" ))
299
- super ().__init__ (title or message , response = response , body = body )
290
+ super ().__init__ (message , response = response , body = body )
300
291
301
- self .title = title
302
292
self .status = cast (Any , data .get ("status" ))
303
293
self .type = cast (Any , data .get ("type" ))
304
294
self .detail = cast (Any , data .get ("detail" ))
295
+ self .title = cast (Any , data .get ("title" ))
305
296
306
297
307
298
class TooManyRequests (RateLimitError ):
@@ -315,13 +306,12 @@ class TooManyRequests(RateLimitError):
315
306
316
307
def __init__ (self , message : str , * , body : object , response : httpx .Response ) -> None :
317
308
data = cast (Mapping [str , object ], body if is_mapping (body ) else {})
318
- title = cast (Any , data .get ("title" ))
319
- super ().__init__ (title or message , response = response , body = body )
309
+ super ().__init__ (message , response = response , body = body )
320
310
321
- self .title = title
322
311
self .status = cast (Any , data .get ("status" ))
323
312
self .type = cast (Any , data .get ("type" ))
324
313
self .detail = cast (Any , data .get ("detail" ))
314
+ self .title = cast (Any , data .get ("title" ))
325
315
326
316
327
317
class OrbInternalServerError (InternalServerError ):
@@ -335,10 +325,9 @@ class OrbInternalServerError(InternalServerError):
335
325
336
326
def __init__ (self , message : str , * , body : object , response : httpx .Response ) -> None :
337
327
data = cast (Mapping [str , object ], body if is_mapping (body ) else {})
338
- title = cast (Any , data .get ("title" ))
339
- super ().__init__ (title or message , response = response , body = body )
328
+ super ().__init__ (message , response = response , body = body )
340
329
341
- self .title = title
342
330
self .status = cast (Any , data .get ("status" ))
343
331
self .type = cast (Any , data .get ("type" ))
344
332
self .detail = cast (Any , data .get ("detail" ))
333
+ self .title = cast (Any , data .get ("title" ))
0 commit comments