File tree Expand file tree Collapse file tree 5 files changed +41
-5
lines changed
DynamoDbEncryption/runtimes/net/Generated
DynamoDbEncryptionTransforms Expand file tree Collapse file tree 5 files changed +41
-5
lines changed Original file line number Diff line number Diff line change 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 ;
45using System ;
56using AWS . Cryptography . DbEncryptionSDK . DynamoDb ;
67namespace 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}
Original file line number Diff line number Diff line change 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 ;
45using System ;
56using AWS . Cryptography . DbEncryptionSDK . DynamoDb . Transforms ;
67namespace 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}
Original file line number Diff line number Diff line change 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 ;
45using System ;
56using AWS . Cryptography . DbEncryptionSDK . DynamoDb . ItemEncryptor ;
67namespace 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}
Original file line number Diff line number Diff line change 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 ;
45using System ;
56using AWS . Cryptography . DbEncryptionSDK . StructuredEncryption ;
67namespace 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}
You can’t perform that action at this time.
0 commit comments