namespace Csob.Credentials;
///
/// Raised when a request does not provide the credential headers required to call ČSOB.
/// Translated to HTTP 401 by the exception-handling middleware.
///
public sealed class MissingCredentialsException : Exception
{
public IReadOnlyList MissingHeaders { get; }
public MissingCredentialsException(IReadOnlyList missingHeaders)
: base("Incomplete ČSOB credentials. Provide the missing values as request headers (TLS only).")
{
MissingHeaders = missingHeaders;
}
}