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