Commit a7ffc35b authored by Almouhannad's avatar Almouhannad

(B) Add domain exceptions

parent 5d8df969
namespace Domain.Exceptions.Base;
public abstract class DomainException : Exception
{
protected DomainException(string message) : base(message)
{
}
}
using Domain.Exceptions.Base;
using Domain.Primitives;
namespace Domain.Exceptions.InvalidValue;
public class InvalidValueDomainException<TEntity> : DomainException
where TEntity : Entity
{
private InvalidValueDomainException(string message = $"Values entered for entity {nameof(TEntity)} are invalid")
: base(message)
{
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment