Files
Wino-Mail/Wino.Core.Domain/Exceptions/AuthenticationAttentionException.cs

19 lines
518 B
C#
Raw Permalink Normal View History

2024-04-18 01:44:37 +02:00
using System;
using Wino.Core.Domain.Entities.Shared;
2024-04-18 01:44:37 +02:00
2025-02-16 11:54:23 +01:00
namespace Wino.Core.Domain.Exceptions;
/// <summary>
/// Thrown when IAuthenticator requires user interaction to fix authentication issues.
/// It can be expired and can't restorable token, or some stuff that requires re-authentication.
/// </summary>
public class AuthenticationAttentionException : Exception
2024-04-18 01:44:37 +02:00
{
2025-02-16 11:54:23 +01:00
public AuthenticationAttentionException(MailAccount account)
2024-04-18 01:44:37 +02:00
{
2025-02-16 11:54:23 +01:00
Account = account;
}
2025-02-16 11:54:23 +01:00
public MailAccount Account { get; }
2024-04-18 01:44:37 +02:00
}