first
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user