From 11ac7e4f0b8fb935e3084a7dcc1dc1e85814a5ad Mon Sep 17 00:00:00 2001 From: Jkorf Date: Thu, 29 Oct 2026 15:38:24 +0100 Subject: [PATCH] Added additional constructor for NoApiCredentialsError --- CryptoExchange.Net/Objects/Error.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CryptoExchange.Net/Objects/Error.cs b/CryptoExchange.Net/Objects/Error.cs index d894f325..d64d887e 100644 --- a/CryptoExchange.Net/Objects/Error.cs +++ b/CryptoExchange.Net/Objects/Error.cs @@ -130,7 +130,7 @@ namespace CryptoExchange.Net.Objects /// /// Default error info /// - 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"); /// @@ -138,6 +138,11 @@ namespace CryptoExchange.Net.Objects /// public NoApiCredentialsError() : base(null, _errorInfo, null) { } + /// + /// ctor + /// + public NoApiCredentialsError(string message) : base(null, _errorInfo with { Message = message }, null) { } + /// /// ctor ///