Вытащил солюшен на уровень выше, чтобы прощё было дотнетить
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
namespace ApplicationLayer.GeneralExceptions;
|
||||
|
||||
public class AlreadyExistsException(string message) : ApiException(message);
|
||||
3
ApplicationLayer/GeneralExceptions/ApiException.cs
Normal file
3
ApplicationLayer/GeneralExceptions/ApiException.cs
Normal file
@@ -0,0 +1,3 @@
|
||||
namespace ApplicationLayer.GeneralExceptions;
|
||||
|
||||
public class ApiException(string message) : Exception(message);
|
||||
@@ -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;
|
||||
@@ -0,0 +1,4 @@
|
||||
namespace ApplicationLayer.GeneralExceptions;
|
||||
|
||||
/// Exception to throw when entity not found
|
||||
public class EntityNotFoundException(string message) : ApiException(message);
|
||||
Reference in New Issue
Block a user