using ShoppingAssistantApi.Domain.Common; namespace ShoppingAssistantApi.Application.Exceptions; public class EntityNotFoundException : Exception where TEntity : EntityBase { public EntityNotFoundException() : base($"\"{typeof(TEntity).Name}\" was not found.") { } public EntityNotFoundException(string message, Exception innerException) : base(message, innerException) { } }