Search by regex, modal Enter fixes

This commit is contained in:
2023-07-31 14:07:52 +02:00
parent a537277546
commit bc31b71130
38 changed files with 301 additions and 53 deletions

View File

@@ -0,0 +1,32 @@
using FileTime.Core.Models;
namespace FileTime.App.Core.Exceptions;
public enum ItemNotFoundExceptionType
{
Raw,
FullName,
NativePath
}
public class ItemNotFoundException : Exception
{
public string Path { get; }
public ItemNotFoundExceptionType Type { get; } = ItemNotFoundExceptionType.Raw;
public ItemNotFoundException(string path)
{
Path = path;
}
public ItemNotFoundException(FullName path)
{
Path = path.Path;
Type = ItemNotFoundExceptionType.FullName;
}
public ItemNotFoundException(NativePath path)
{
Path = path.Path;
Type = ItemNotFoundExceptionType.NativePath;
}
}