Вытащил солюшен на уровень выше, чтобы прощё было дотнетить
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2025-10-05 14:32:06 +03:00
parent fa87a56ad1
commit aae4b28089
242 changed files with 159 additions and 159 deletions

View File

@@ -0,0 +1,3 @@
namespace ApplicationLayer.GeneralExceptions;
public class AlreadyExistsException(string message) : ApiException(message);

View File

@@ -0,0 +1,3 @@
namespace ApplicationLayer.GeneralExceptions;
public class ApiException(string message) : Exception(message);

View File

@@ -0,0 +1,9 @@
using Domains;
namespace ApplicationLayer.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($"{typeof(T).Name} with id {id} not found.")
where T : class, IEntity;

View File

@@ -0,0 +1,4 @@
namespace ApplicationLayer.GeneralExceptions;
/// Exception to throw when entity not found
public class EntityNotFoundException(string message) : ApiException(message);