zeroframework/Services/DeviceCenter/ZeroFramework.DeviceCenter.Domain/Exceptions/EntityNotFoundException.cs

13 lines
367 B
C#
Raw Permalink Normal View History

2023-12-05 09:22:48 +00:00
namespace ZeroFramework.DeviceCenter.Domain.Exceptions
{
public class EntityNotFoundException(Type entityType) : Exception
{
public Type EntityType { get; set; } = entityType;
public override string ToString()
{
return $"There is no such an entity given given id. Entity type: {EntityType.FullName}";
}
}
}