We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 478d805 commit 56da11aCopy full SHA for 56da11a
src/MySqlConnector/MySql.Data.MySqlClient/MySqlConnectionStringBuilder.cs
@@ -295,7 +295,7 @@ public static MySqlConnectionStringOption TryGetOptionForKey(string key) =>
295
s_options.TryGetValue(key, out var option) ? option : null;
296
297
public static MySqlConnectionStringOption GetOptionForKey(string key) =>
298
- TryGetOptionForKey(key) ?? throw new InvalidOperationException("Option '{0}' not supported.".FormatInvariant(key));
+ TryGetOptionForKey(key) ?? throw new ArgumentException("Option '{0}' not supported.".FormatInvariant(key));
299
300
public string Key => m_keys[0];
301
public IReadOnlyList<string> Keys => m_keys;
0 commit comments