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

20 lines
550 B
C#
Raw Permalink Normal View History

2024-04-18 01:44:37 +02:00
using System;
using Wino.Core.Domain.Enums;
2025-02-16 11:54:23 +01:00
namespace Wino.Core.Domain.Exceptions;
/// <summary>
/// Emitted when special folder is needed for an operation but it couldn't be found.
/// </summary>
public class UnavailableSpecialFolderException : Exception
2024-04-18 01:44:37 +02:00
{
2025-02-16 11:54:23 +01:00
public UnavailableSpecialFolderException(SpecialFolderType specialFolderType, Guid accountId)
2024-04-18 01:44:37 +02:00
{
2025-02-16 11:54:23 +01:00
SpecialFolderType = specialFolderType;
AccountId = accountId;
}
2025-02-16 11:54:23 +01:00
public SpecialFolderType SpecialFolderType { get; }
public Guid AccountId { get; set; }
2024-04-18 01:44:37 +02:00
}