17 lines
479 B
C#
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)
|
|
{
|
|
}
|
|
} |