Files
idoklad/Credentials/MissingCredentialsException.cs
2026-06-12 13:18:35 +02:00

17 lines
610 B
C#

namespace Idoklad.Credentials;
/// <summary>
/// Raised when the request does not provide a complete set of iDoklad credentials,
/// neither through request headers nor through the service environment defaults.
/// </summary>
public sealed class MissingCredentialsException : Exception
{
public IReadOnlyList<string> MissingHeaders { get; }
public MissingCredentialsException(IReadOnlyList<string> missingHeaders)
: base("Incomplete iDoklad credentials. Provide the missing values as request headers or configure the service defaults.")
{
MissingHeaders = missingHeaders;
}
}