This commit is contained in:
JiriUhlir
2026-06-18 11:05:46 +02:00
parent f44ffae9fc
commit 09db30a3ca
84 changed files with 3952 additions and 15 deletions
@@ -0,0 +1,16 @@
namespace Csob.Credentials;
/// <summary>
/// Raised when a request does not provide the credential headers required to call ČSOB.
/// Translated to HTTP 401 by the exception-handling middleware.
/// </summary>
public sealed class MissingCredentialsException : Exception
{
public IReadOnlyList<string> MissingHeaders { get; }
public MissingCredentialsException(IReadOnlyList<string> missingHeaders)
: base("Incomplete ČSOB credentials. Provide the missing values as request headers (TLS only).")
{
MissingHeaders = missingHeaders;
}
}