toBatchStatementErrorCodeEnum method
Implementation
BatchStatementErrorCodeEnum toBatchStatementErrorCodeEnum() {
switch (this) {
case 'ConditionalCheckFailed':
return BatchStatementErrorCodeEnum.conditionalCheckFailed;
case 'ItemCollectionSizeLimitExceeded':
return BatchStatementErrorCodeEnum.itemCollectionSizeLimitExceeded;
case 'RequestLimitExceeded':
return BatchStatementErrorCodeEnum.requestLimitExceeded;
case 'ValidationError':
return BatchStatementErrorCodeEnum.validationError;
case 'ProvisionedThroughputExceeded':
return BatchStatementErrorCodeEnum.provisionedThroughputExceeded;
case 'TransactionConflict':
return BatchStatementErrorCodeEnum.transactionConflict;
case 'ThrottlingError':
return BatchStatementErrorCodeEnum.throttlingError;
case 'InternalServerError':
return BatchStatementErrorCodeEnum.internalServerError;
case 'ResourceNotFound':
return BatchStatementErrorCodeEnum.resourceNotFound;
case 'AccessDenied':
return BatchStatementErrorCodeEnum.accessDenied;
case 'DuplicateItem':
return BatchStatementErrorCodeEnum.duplicateItem;
}
throw Exception('$this is not known in enum BatchStatementErrorCodeEnum');
}