diff --git a/Application/Common/Exceptions/RecordExistException.cs b/Application/Common/Exceptions/RecordExistException.cs new file mode 100644 index 0000000..0344876 --- /dev/null +++ b/Application/Common/Exceptions/RecordExistException.cs @@ -0,0 +1,6 @@ +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}\"."); \ No newline at end of file