UNPKG

@aws-sdk/client-dynamodb

Version:

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

441 lines (440 loc) 13.5 kB
import { DynamoDBServiceException as __BaseException } from "./DynamoDBServiceException"; export class BackupInUseException extends __BaseException { name = "BackupInUseException"; $fault = "client"; constructor(opts) { super({ name: "BackupInUseException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, BackupInUseException.prototype); } } export class BackupNotFoundException extends __BaseException { name = "BackupNotFoundException"; $fault = "client"; constructor(opts) { super({ name: "BackupNotFoundException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, BackupNotFoundException.prototype); } } export class InternalServerError extends __BaseException { name = "InternalServerError"; $fault = "server"; constructor(opts) { super({ name: "InternalServerError", $fault: "server", ...opts, }); Object.setPrototypeOf(this, InternalServerError.prototype); } } export class RequestLimitExceeded extends __BaseException { name = "RequestLimitExceeded"; $fault = "client"; ThrottlingReasons; constructor(opts) { super({ name: "RequestLimitExceeded", $fault: "client", ...opts, }); Object.setPrototypeOf(this, RequestLimitExceeded.prototype); this.ThrottlingReasons = opts.ThrottlingReasons; } } export class ThrottlingException extends __BaseException { name = "ThrottlingException"; $fault = "client"; throttlingReasons; constructor(opts) { super({ name: "ThrottlingException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, ThrottlingException.prototype); this.throttlingReasons = opts.throttlingReasons; } } export class InvalidEndpointException extends __BaseException { name = "InvalidEndpointException"; $fault = "client"; Message; constructor(opts) { super({ name: "InvalidEndpointException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, InvalidEndpointException.prototype); this.Message = opts.Message; } } export class ProvisionedThroughputExceededException extends __BaseException { name = "ProvisionedThroughputExceededException"; $fault = "client"; ThrottlingReasons; constructor(opts) { super({ name: "ProvisionedThroughputExceededException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, ProvisionedThroughputExceededException.prototype); this.ThrottlingReasons = opts.ThrottlingReasons; } } export class ResourceNotFoundException extends __BaseException { name = "ResourceNotFoundException"; $fault = "client"; constructor(opts) { super({ name: "ResourceNotFoundException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, ResourceNotFoundException.prototype); } } export class ItemCollectionSizeLimitExceededException extends __BaseException { name = "ItemCollectionSizeLimitExceededException"; $fault = "client"; constructor(opts) { super({ name: "ItemCollectionSizeLimitExceededException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, ItemCollectionSizeLimitExceededException.prototype); } } export class ReplicatedWriteConflictException extends __BaseException { name = "ReplicatedWriteConflictException"; $fault = "client"; $retryable = {}; constructor(opts) { super({ name: "ReplicatedWriteConflictException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, ReplicatedWriteConflictException.prototype); } } export class ContinuousBackupsUnavailableException extends __BaseException { name = "ContinuousBackupsUnavailableException"; $fault = "client"; constructor(opts) { super({ name: "ContinuousBackupsUnavailableException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, ContinuousBackupsUnavailableException.prototype); } } export class LimitExceededException extends __BaseException { name = "LimitExceededException"; $fault = "client"; constructor(opts) { super({ name: "LimitExceededException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, LimitExceededException.prototype); } } export class TableInUseException extends __BaseException { name = "TableInUseException"; $fault = "client"; constructor(opts) { super({ name: "TableInUseException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, TableInUseException.prototype); } } export class TableNotFoundException extends __BaseException { name = "TableNotFoundException"; $fault = "client"; constructor(opts) { super({ name: "TableNotFoundException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, TableNotFoundException.prototype); } } export class GlobalTableAlreadyExistsException extends __BaseException { name = "GlobalTableAlreadyExistsException"; $fault = "client"; constructor(opts) { super({ name: "GlobalTableAlreadyExistsException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, GlobalTableAlreadyExistsException.prototype); } } export class ResourceInUseException extends __BaseException { name = "ResourceInUseException"; $fault = "client"; constructor(opts) { super({ name: "ResourceInUseException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, ResourceInUseException.prototype); } } export class TransactionConflictException extends __BaseException { name = "TransactionConflictException"; $fault = "client"; constructor(opts) { super({ name: "TransactionConflictException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, TransactionConflictException.prototype); } } export class PolicyNotFoundException extends __BaseException { name = "PolicyNotFoundException"; $fault = "client"; constructor(opts) { super({ name: "PolicyNotFoundException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, PolicyNotFoundException.prototype); } } export class ExportNotFoundException extends __BaseException { name = "ExportNotFoundException"; $fault = "client"; constructor(opts) { super({ name: "ExportNotFoundException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, ExportNotFoundException.prototype); } } export class GlobalTableNotFoundException extends __BaseException { name = "GlobalTableNotFoundException"; $fault = "client"; constructor(opts) { super({ name: "GlobalTableNotFoundException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, GlobalTableNotFoundException.prototype); } } export class ImportNotFoundException extends __BaseException { name = "ImportNotFoundException"; $fault = "client"; constructor(opts) { super({ name: "ImportNotFoundException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, ImportNotFoundException.prototype); } } export class DuplicateItemException extends __BaseException { name = "DuplicateItemException"; $fault = "client"; constructor(opts) { super({ name: "DuplicateItemException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, DuplicateItemException.prototype); } } export class IdempotentParameterMismatchException extends __BaseException { name = "IdempotentParameterMismatchException"; $fault = "client"; Message; constructor(opts) { super({ name: "IdempotentParameterMismatchException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, IdempotentParameterMismatchException.prototype); this.Message = opts.Message; } } export class TransactionInProgressException extends __BaseException { name = "TransactionInProgressException"; $fault = "client"; Message; constructor(opts) { super({ name: "TransactionInProgressException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, TransactionInProgressException.prototype); this.Message = opts.Message; } } export class ExportConflictException extends __BaseException { name = "ExportConflictException"; $fault = "client"; constructor(opts) { super({ name: "ExportConflictException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, ExportConflictException.prototype); } } export class InvalidExportTimeException extends __BaseException { name = "InvalidExportTimeException"; $fault = "client"; constructor(opts) { super({ name: "InvalidExportTimeException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, InvalidExportTimeException.prototype); } } export class PointInTimeRecoveryUnavailableException extends __BaseException { name = "PointInTimeRecoveryUnavailableException"; $fault = "client"; constructor(opts) { super({ name: "PointInTimeRecoveryUnavailableException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, PointInTimeRecoveryUnavailableException.prototype); } } export class ImportConflictException extends __BaseException { name = "ImportConflictException"; $fault = "client"; constructor(opts) { super({ name: "ImportConflictException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, ImportConflictException.prototype); } } export class TableAlreadyExistsException extends __BaseException { name = "TableAlreadyExistsException"; $fault = "client"; constructor(opts) { super({ name: "TableAlreadyExistsException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, TableAlreadyExistsException.prototype); } } export class InvalidRestoreTimeException extends __BaseException { name = "InvalidRestoreTimeException"; $fault = "client"; constructor(opts) { super({ name: "InvalidRestoreTimeException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, InvalidRestoreTimeException.prototype); } } export class ReplicaAlreadyExistsException extends __BaseException { name = "ReplicaAlreadyExistsException"; $fault = "client"; constructor(opts) { super({ name: "ReplicaAlreadyExistsException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, ReplicaAlreadyExistsException.prototype); } } export class ReplicaNotFoundException extends __BaseException { name = "ReplicaNotFoundException"; $fault = "client"; constructor(opts) { super({ name: "ReplicaNotFoundException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, ReplicaNotFoundException.prototype); } } export class IndexNotFoundException extends __BaseException { name = "IndexNotFoundException"; $fault = "client"; constructor(opts) { super({ name: "IndexNotFoundException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, IndexNotFoundException.prototype); } } export class ConditionalCheckFailedException extends __BaseException { name = "ConditionalCheckFailedException"; $fault = "client"; Item; constructor(opts) { super({ name: "ConditionalCheckFailedException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, ConditionalCheckFailedException.prototype); this.Item = opts.Item; } } export class TransactionCanceledException extends __BaseException { name = "TransactionCanceledException"; $fault = "client"; Message; CancellationReasons; constructor(opts) { super({ name: "TransactionCanceledException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, TransactionCanceledException.prototype); this.Message = opts.Message; this.CancellationReasons = opts.CancellationReasons; } }