2024-04-18 01:44:37 +02:00
|
|
|
|
using System;
|
2024-11-10 23:28:25 +01:00
|
|
|
|
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:43:30 +01:00
|
|
|
|
}
|
2025-02-16 11:54:23 +01:00
|
|
|
|
|
|
|
|
|
|
public MailAccount Account { get; }
|
2024-04-18 01:44:37 +02:00
|
|
|
|
}
|