Added comments, changed generic repository, removed warnings

This commit is contained in:
2024-08-15 14:15:01 +03:00
parent 798811b093
commit deaa9d9670
14 changed files with 71 additions and 24 deletions

View File

@@ -1,4 +1,10 @@
namespace Infrastructure.Database.GeneralExceptions
using Domains;
namespace Infrastructure.Database.GeneralExceptions
{
public class EntityNotFoundException<T>(Guid id) : Exception($"Entity {typeof(T).Name} with id '{id}' not found");
/// Exception to throw when entity with specific id not found
/// <param name="id">Identifier of entity</param>
/// <typeparam name="T">Not found entity type</typeparam>
public class EntityNotFoundException<T>(Guid id) : Exception($"Entity {typeof(T).Name} with id '{id}' not found")
where T : class, IEntity;
}