Exceptions handling

This commit is contained in:
2024-08-18 19:53:40 +03:00
parent 3cb2083222
commit ec394a9b61
6 changed files with 73 additions and 5 deletions

View File

@@ -5,5 +5,5 @@ namespace Infrastructure.Database.GeneralExceptions;
/// Exception to throw when entity not found
/// <param name="id">Identifier of entity</param>
/// <typeparam name="T">Type of entity</typeparam>
public class EntityNotFoundByIdException<T>(Guid id) : EntityNotFoundException<T>($"Entity {typeof(T).Name} with id {id} not found.")
where T : class, IEntity;
public class EntityNotFoundByIdException<T>(Guid id) : EntityNotFoundException<T>($"{typeof(T).Name} with id {id} not found.")
where T : class, IEntity;