1
0
mirror of https://github.com/JKorf/CryptoExchange.Net.git synced 2026-11-04 09:17:53 +00:00

Added additional constructor for NoApiCredentialsError

This commit is contained in:
Jkorf
2026-10-29 15:38:24 +01:00
parent a4ae3c6d87
commit 11ac7e4f0b
+6 -1
View File
@@ -130,7 +130,7 @@ namespace CryptoExchange.Net.Objects
/// <summary>
/// Default error info
/// </summary>
protected static readonly ErrorInfo _errorInfo = new ErrorInfo(ErrorType.MissingCredentials, false,
protected static readonly ErrorInfo _errorInfo = new ErrorInfo(ErrorType.MissingCredentials, false,
"No credentials provided for private endpoint, set the `ApiCredentials` option in the client configuration");
/// <summary>
@@ -138,6 +138,11 @@ namespace CryptoExchange.Net.Objects
/// </summary>
public NoApiCredentialsError() : base(null, _errorInfo, null) { }
/// <summary>
/// ctor
/// </summary>
public NoApiCredentialsError(string message) : base(null, _errorInfo with { Message = message }, null) { }
/// <summary>
/// ctor
/// </summary>