Skip to content

Commit 89b90ef

Browse files
author
awstools
committed
feat(client-chime-sdk-meetings): Include additional exceptions types.
1 parent 047c131 commit 89b90ef

File tree

3 files changed

+396
-28
lines changed

3 files changed

+396
-28
lines changed

clients/client-chime-sdk-meetings/src/models/models_0.ts

+78-28
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,31 @@ export class NotFoundException extends __BaseException {
279279
}
280280
}
281281

282+
/**
283+
* <p>The service encountered an unexpected error.</p>
284+
*/
285+
export class ServiceFailureException extends __BaseException {
286+
readonly name: "ServiceFailureException" = "ServiceFailureException";
287+
readonly $fault: "server" = "server";
288+
Code?: string;
289+
Message?: string;
290+
RequestId?: string;
291+
/**
292+
* @internal
293+
*/
294+
constructor(opts: __ExceptionOptionType<ServiceFailureException, __BaseException>) {
295+
super({
296+
name: "ServiceFailureException",
297+
$fault: "server",
298+
...opts,
299+
});
300+
Object.setPrototypeOf(this, ServiceFailureException.prototype);
301+
this.Code = opts.Code;
302+
this.Message = opts.Message;
303+
this.RequestId = opts.RequestId;
304+
}
305+
}
306+
282307
/**
283308
* <p>The service is currently unavailable.</p>
284309
*/
@@ -313,6 +338,31 @@ export class ServiceUnavailableException extends __BaseException {
313338
}
314339
}
315340

341+
/**
342+
* <p>The number of customer requests exceeds the request rate limit.</p>
343+
*/
344+
export class ThrottlingException extends __BaseException {
345+
readonly name: "ThrottlingException" = "ThrottlingException";
346+
readonly $fault: "client" = "client";
347+
Code?: string;
348+
Message?: string;
349+
RequestId?: string;
350+
/**
351+
* @internal
352+
*/
353+
constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>) {
354+
super({
355+
name: "ThrottlingException",
356+
$fault: "client",
357+
...opts,
358+
});
359+
Object.setPrototypeOf(this, ThrottlingException.prototype);
360+
this.Code = opts.Code;
361+
this.Message = opts.Message;
362+
this.RequestId = opts.RequestId;
363+
}
364+
}
365+
316366
/**
317367
* <p>The user isn't authorized to request a resource.</p>
318368
*/
@@ -341,6 +391,34 @@ export class UnauthorizedException extends __BaseException {
341391
}
342392
}
343393

394+
/**
395+
* <p>The request was well-formed but was unable to be followed due to semantic errors.</p>
396+
*/
397+
export class UnprocessableEntityException extends __BaseException {
398+
readonly name: "UnprocessableEntityException" = "UnprocessableEntityException";
399+
readonly $fault: "client" = "client";
400+
Code?: string;
401+
Message?: string;
402+
/**
403+
* <p>The request id associated with the call responsible for the exception.</p>
404+
*/
405+
RequestId?: string;
406+
/**
407+
* @internal
408+
*/
409+
constructor(opts: __ExceptionOptionType<UnprocessableEntityException, __BaseException>) {
410+
super({
411+
name: "UnprocessableEntityException",
412+
$fault: "client",
413+
...opts,
414+
});
415+
Object.setPrototypeOf(this, UnprocessableEntityException.prototype);
416+
this.Code = opts.Code;
417+
this.Message = opts.Message;
418+
this.RequestId = opts.RequestId;
419+
}
420+
}
421+
344422
export interface CreateAttendeeRequest {
345423
/**
346424
* <p>The unique ID of the meeting.</p>
@@ -380,34 +458,6 @@ export namespace CreateAttendeeResponse {
380458
});
381459
}
382460

383-
/**
384-
* <p>The request was well-formed but was unable to be followed due to semantic errors.</p>
385-
*/
386-
export class UnprocessableEntityException extends __BaseException {
387-
readonly name: "UnprocessableEntityException" = "UnprocessableEntityException";
388-
readonly $fault: "client" = "client";
389-
Code?: string;
390-
Message?: string;
391-
/**
392-
* <p>The request id associated with the call responsible for the exception.</p>
393-
*/
394-
RequestId?: string;
395-
/**
396-
* @internal
397-
*/
398-
constructor(opts: __ExceptionOptionType<UnprocessableEntityException, __BaseException>) {
399-
super({
400-
name: "UnprocessableEntityException",
401-
$fault: "client",
402-
...opts,
403-
});
404-
Object.setPrototypeOf(this, UnprocessableEntityException.prototype);
405-
this.Code = opts.Code;
406-
this.Message = opts.Message;
407-
this.RequestId = opts.RequestId;
408-
}
409-
}
410-
411461
/**
412462
* <p>The configuration settings of the features available to a meeting.></p>
413463
*/

0 commit comments

Comments
 (0)