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