feat: add exception
This commit is contained in:
parent
def7111651
commit
6f5a662e2f
6
Application/Common/Exceptions/RecordExistException.cs
Normal file
6
Application/Common/Exceptions/RecordExistException.cs
Normal file
@ -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}\".");
|
Loading…
Reference in New Issue
Block a user