mirror of
https://github.com/rmcrackan/Libation.git
synced 2026-07-30 08:55:56 -04:00
15 lines
566 B
C#
15 lines
566 B
C#
namespace AudibleUtilities;
|
|
|
|
/// <summary>
|
|
/// Stored Audible credentials are missing or invalid and interactive login is required.
|
|
/// Thrown instead of opening login UI when the caller disallows interactive login (e.g. auto-scan).
|
|
/// </summary>
|
|
public sealed class AuthenticationRequiredException : Exception
|
|
{
|
|
public Account? Account { get; }
|
|
|
|
public AuthenticationRequiredException(Account? account, string? message = null, Exception? innerException = null)
|
|
: base(message ?? "Audible authentication is required.", innerException)
|
|
=> Account = account;
|
|
}
|