Files
csob/Credentials/MissingCredentialsException.cs
JiriUhlir 09db30a3ca first
2026-06-18 11:05:46 +02:00

17 lines
571 B
C#

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;
}
}