Skip to content

Commit 3c8edad

Browse files
committed
update
1 parent 606b071 commit 3c8edad

File tree

5 files changed

+41
-5
lines changed

5 files changed

+41
-5
lines changed
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;
67
namespace AWS.Cryptography.DbEncryptionSDK.DynamoDb
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
}
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
}
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.ItemEncryptor;
67
namespace AWS.Cryptography.DbEncryptionSDK.DynamoDb.ItemEncryptor
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
}
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.StructuredEncryption;
67
namespace AWS.Cryptography.DbEncryptionSDK.StructuredEncryption
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)