Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing constructors to exception classes #3026

Merged
merged 2 commits into from
Dec 14, 2022

Conversation

abhipsaMisra
Copy link
Member

Custom exceptions should be serializable so that the exception information can be serialized and shared between different services/processes.

CA2229: Implement serialization constructors

@abhipsaMisra abhipsaMisra merged commit e30ddff into feature/buildError Dec 14, 2022
@abhipsaMisra abhipsaMisra deleted the abmisr/exception branch December 14, 2022 21:24
abhipsaMisra added a commit that referenced this pull request Dec 16, 2022
* Fix param name matching in base class method and derived class overridden method (#3023)

* Fix reserved keyword error (#3025)

* Change param name to not be a reserved keyword

* Cleanup

* Update to match ModulesClient

* Add missing constructors to exception classes (#3026)

* Fix for Specify IFormatProvider errors (#3027)

* Specify IFormatProvider

* Change to InvariantCulture to stay consistent with track 2 SDKs

* Throw InvalidOperationException instead of System.Exception (#3029)

* Assign the instance to a variable (#3030)

* Collections should implement generic interface (#3028)

* Fix StringComparison Errors (#3031)

* Mark members as static (#3032)

* Fix param name matching in base class method and derived class overridden method (#3033)

* More build fixes (#3034)

* Change Parameter names to match base declaration

* Fix error CA1854, Prefer a 'TryGetValue' call over a Dictionary indexer access guarded by a 'ContainsKey' check to avoid double lookup

* Change Parameter names to match base declaration

* Fix error CA1854, Prefer a 'TryGetValue' call over a Dictionary indexer access guarded by a 'ContainsKey' check to avoid double lookup

* More string IFormatProvider fixes

* Cleanup

* IDisposable fixes (#3035)

* Fix IDisposable errors

* Fix Dispose implementation

* Use Array.Empty instead of zero lenth arrays, static methods for tests (#3037)

* Simplify access

* Update iothub/device/tests/Transport/Amqp/AmqpConnectionPoolTests.cs

Co-authored-by: ngastelum-ms <[email protected]>

Co-authored-by: ngastelum-ms <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants