Files
adas-core/adas-core.Domain/Exceptions/BusinessException.cs
2026-06-26 10:29:23 +02:00

17 lines
479 B
C#

using System.Net;
namespace adas_core.Domain.Exceptions;
/// <summary>
/// Represents an exception that aggregates one or more errors related to business logic or domain rule violations.
/// </summary>
public class BusinessException : AggregateException
{
public BusinessException(HttpStatusCode status, string message) : base($"{status}: {message}")
{
}
public BusinessException(string message, Exception exception) : base(message, exception)
{
}
}