6 lines
272 B
C#
6 lines
272 B
C#
using System;
|
|
using System.Reflection;
|
|
|
|
namespace Mirea.Api.DataAccess.Application.Common.Exceptions;
|
|
|
|
public class RecordExistException(MemberInfo entity, string name, object id) : Exception($"Entity \"{entity.Name}\" with \"{name}\" already exist with id \"{id}\"."); |