shopping-assistant-api/ShoppingAssistantApi.Application/Exceptions/EntityNotFoundException.cs
2023-09-22 23:02:20 +03:00

13 lines
415 B
C#

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