MireaBackend/SqlData/Application/Common/Exceptions/NotFoundException.cs

10 lines
445 B
C#
Raw Permalink Normal View History

2024-02-16 22:52:36 +03:00
using System;
using System.Reflection;
2024-01-28 04:30:25 +03:00
namespace Mirea.Api.DataAccess.Application.Common.Exceptions;
public class NotFoundException : Exception
{
2024-10-25 04:42:27 +03:00
public NotFoundException(MemberInfo entity, string name, object id) : base($"The entity \"{entity.Name}\" property \"{name}\" was not found by \"{id}\".") { }
public NotFoundException(MemberInfo entity, object id) : base($"The entity \"{entity.Name}\" was not found by \"{id}\".") { }
2024-01-28 04:30:25 +03:00
}