Skip to content

Commit 2134bdd

Browse files
committed
Switch back to original exception type
1 parent a494e63 commit 2134bdd

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

src/Connectors/src/Connectors/MongoDb/MongoDbConnectionStringBuilder.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,9 @@ private void FromConnectionString(string? connectionString, bool preserveUnknown
135135
if (connectionString.Contains(','))
136136
{
137137
// MongoDB allows multiple servers in the connection string, but we haven't found any service bindings that actually use that.
138-
throw new NotSupportedException("Support for multiple servers is not implemented. Please open a GitHub issue if you need this.");
138+
#pragma warning disable S3717 // Track use of "NotImplementedException"
139+
throw new NotImplementedException("Support for multiple servers is not implemented. Please open a GitHub issue if you need this.");
140+
#pragma warning restore S3717 // Track use of "NotImplementedException"
139141
}
140142

141143
// MongoDB allows semicolon as separator for query string parameters, to provide backwards compatibility.

src/Connectors/src/Connectors/Redis/RedisConnectionStringBuilder.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,9 @@ private void FromConnectionString(string? connectionString)
103103
if (option.Contains(','))
104104
{
105105
// Redis allows multiple servers in the connection string, but we haven't found any service bindings that actually use that.
106-
throw new NotSupportedException("Support for multiple servers is not implemented. Please open a GitHub issue if you need this.");
106+
#pragma warning disable S3717 // Track use of "NotImplementedException"
107+
throw new NotImplementedException("Support for multiple servers is not implemented. Please open a GitHub issue if you need this.");
108+
#pragma warning restore S3717 // Track use of "NotImplementedException"
107109
}
108110

109111
string[] hostWithPort = option.Split(':', 2);

0 commit comments

Comments
 (0)