MireaBackend/Application/Common/Exceptions/RecordExistException.cs

6 lines
273 B
C#
Raw Normal View History

2024-01-16 12:50:20 +03:00
using System;
using System.Reflection;
namespace Mirea.Api.DataAccess.Application.Common.Exceptions;
2024-01-21 22:51:20 +03:00
public class RecordExistException(MemberInfo entity, string name, object id) : Exception($"The entity \"{entity.Name}\" property \"{name}\" exists with id \"{id}\".");