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