Skip to content

Commit 7346fee

Browse files
committed
m
1 parent ab30818 commit 7346fee

File tree

3 files changed

+58
-2
lines changed

3 files changed

+58
-2
lines changed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
diff --git a/DynamoDbEncryption/runtimes/net/Generated/DynamoDbEncryptionTransforms/CollectionOfErrors.cs b/DynamoDbEncryption/runtimes/net/Generated/DynamoDbEncryptionTransforms/CollectionOfErrors.cs
2+
index 6e2cf219..6d5bbed5 100644
3+
--- a/DynamoDbEncryption/runtimes/net/Generated/DynamoDbEncryptionTransforms/CollectionOfErrors.cs
4+
+++ b/DynamoDbEncryption/runtimes/net/Generated/DynamoDbEncryptionTransforms/CollectionOfErrors.cs
5+
@@ -1,6 +1,7 @@
6+
// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
7+
// SPDX-License-Identifier: Apache-2.0
8+
// Do not modify this file. This file is machine generated, and any changes to it will be overwritten.
9+
+using System.Collections.Generic;
10+
using System;
11+
using AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms;
12+
namespace AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms
13+
@@ -8,9 +9,17 @@ namespace AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms
14+
public class CollectionOfErrors : Exception
15+
{
16+
public readonly System.Collections.Generic.List<Exception> list;
17+
- public CollectionOfErrors(System.Collections.Generic.List<Exception> list, string message) : base(message) { this.list = list; }
18+
+ public CollectionOfErrors(System.Collections.Generic.List<Exception> list, string message) : base(message + $"\n List: \n{ListAsString(list)}") { this.list = list; }
19+
public CollectionOfErrors(string message) : base(message) { this.list = new System.Collections.Generic.List<Exception>(); }
20+
public CollectionOfErrors() : base("CollectionOfErrors") { this.list = new System.Collections.Generic.List<Exception>(); }
21+
+ private static string ListAsString(List<Exception> list)
22+
+ {
23+
+ if (list.Count < 1) return "";
24+
+ string[] msgArr = new string[list.Count];
25+
+ for (int i = 0; i < list.Count; i++)
26+
+ msgArr[i] = $"{list[i].GetType().Name} :: {list[i].Message}";
27+
+ return String.Join("\n\t", msgArr);
28+
+ }
29+
}
30+
31+
}
32+
33+
diff --git b/DynamoDbEncryption/runtimes/net/Generated/DynamoDbEncryptionTransforms/TypeConversion.cs a/DynamoDbEncryption/runtimes/net/Generated/DynamoDbEncryptionTransforms/TypeConversion.cs
34+
index 2f95341..36226d3 100644
35+
--- b/DynamoDbEncryption/runtimes/net/Generated/DynamoDbEncryptionTransforms/TypeConversion.cs
36+
+++ a/DynamoDbEncryption/runtimes/net/Generated/DynamoDbEncryptionTransforms/TypeConversion.cs
37+
@@ -7,10 +7,6 @@ namespace AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms
38+
{
39+
public static class TypeConversion
40+
{
41+
- private const string ISO8601DateFormat = "yyyy-MM-dd\\THH:mm:ss.fff\\Z";
42+
-
43+
- private const string ISO8601DateFormatNoMS = "yyyy-MM-dd\\THH:mm:ss\\Z";
44+
-
45+
public static AWS.Cryptography.DbEncryptionSDK.DynamoDb.DynamoDbTablesEncryptionConfig FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S30_DynamoDbTablesEncryptionConfig(software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types._IDynamoDbTablesEncryptionConfig value)
46+
{
47+
software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.DynamoDbTablesEncryptionConfig concrete = (software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.DynamoDbTablesEncryptionConfig)value; AWS.Cryptography.DbEncryptionSDK.DynamoDb.DynamoDbTablesEncryptionConfig converted = new AWS.Cryptography.DbEncryptionSDK.DynamoDb.DynamoDbTablesEncryptionConfig(); converted.TableEncryptionConfigs = (System.Collections.Generic.Dictionary<string, AWS.Cryptography.DbEncryptionSDK.DynamoDb.DynamoDbTableEncryptionConfig>)FromDafny_N3_aws__N12_cryptography__N15_dbEncryptionSdk__N8_dynamoDb__S30_DynamoDbTablesEncryptionConfig__M22_tableEncryptionConfigs(concrete._tableEncryptionConfigs); return converted;
Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,25 @@
11
// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0
33
// Do not modify this file. This file is machine generated, and any changes to it will be overwritten.
4+
using System.Collections.Generic;
45
using System;
56
using AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms;
67
namespace AWS.Cryptography.DbEncryptionSDK.DynamoDb.Transforms
78
{
89
public class CollectionOfErrors : Exception
910
{
1011
public readonly System.Collections.Generic.List<Exception> list;
11-
public CollectionOfErrors(System.Collections.Generic.List<Exception> list, string message) : base(message) { this.list = list; }
12+
public CollectionOfErrors(System.Collections.Generic.List<Exception> list, string message) : base(message + $"\n List: \n{ListAsString(list)}") { this.list = list; }
1213
public CollectionOfErrors(string message) : base(message) { this.list = new System.Collections.Generic.List<Exception>(); }
1314
public CollectionOfErrors() : base("CollectionOfErrors") { this.list = new System.Collections.Generic.List<Exception>(); }
15+
private static string ListAsString(List<Exception> list)
16+
{
17+
if (list.Count < 1) return "";
18+
string[] msgArr = new string[list.Count];
19+
for (int i = 0; i < list.Count; i++)
20+
msgArr[i] = $"{list[i].GetType().Name} :: {list[i].Message}";
21+
return String.Join("\n\t", msgArr);
22+
}
1423
}
1524

1625
}

submodules/smithy-dafny

0 commit comments

Comments
 (0)