UNPKG

@aws-sdk/client-account

Version:

AWS SDK for JavaScript Account Client for Node.js, Browser and React Native

106 lines (105 loc) 3.05 kB
import { AccountServiceException as __BaseException } from "./AccountServiceException"; export class AccessDeniedException extends __BaseException { name = "AccessDeniedException"; $fault = "client"; errorType; constructor(opts) { super({ name: "AccessDeniedException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, AccessDeniedException.prototype); this.errorType = opts.errorType; } } export class ConflictException extends __BaseException { name = "ConflictException"; $fault = "client"; errorType; constructor(opts) { super({ name: "ConflictException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, ConflictException.prototype); this.errorType = opts.errorType; } } export class InternalServerException extends __BaseException { name = "InternalServerException"; $fault = "server"; $retryable = {}; errorType; constructor(opts) { super({ name: "InternalServerException", $fault: "server", ...opts, }); Object.setPrototypeOf(this, InternalServerException.prototype); this.errorType = opts.errorType; } } export class ResourceNotFoundException extends __BaseException { name = "ResourceNotFoundException"; $fault = "client"; errorType; constructor(opts) { super({ name: "ResourceNotFoundException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, ResourceNotFoundException.prototype); this.errorType = opts.errorType; } } export class TooManyRequestsException extends __BaseException { name = "TooManyRequestsException"; $fault = "client"; $retryable = { throttling: true, }; errorType; constructor(opts) { super({ name: "TooManyRequestsException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, TooManyRequestsException.prototype); this.errorType = opts.errorType; } } export class ValidationException extends __BaseException { name = "ValidationException"; $fault = "client"; reason; fieldList; constructor(opts) { super({ name: "ValidationException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, ValidationException.prototype); this.reason = opts.reason; this.fieldList = opts.fieldList; } } export class ResourceUnavailableException extends __BaseException { name = "ResourceUnavailableException"; $fault = "client"; errorType; constructor(opts) { super({ name: "ResourceUnavailableException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, ResourceUnavailableException.prototype); this.errorType = opts.errorType; } }