namespace Books.Api.Domain;

public class DomainException : Exception
{
    public string Code { get; }
    public string? MessageDanish { get; }

    public DomainException(string message)
        : base(message)
    {
        Code = "DOMAIN_ERROR";
    }

    public DomainException(string code, string message, string messageDanish)
        : base(message)
    {
        Code = code;
        MessageDanish = messageDanish;
    }
}
