17 lines
571 B
C#
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;
|
|
}
|
|
}
|