14 lines
334 B
C#
14 lines
334 B
C#
using System.Net;
|
|
|
|
namespace adas_core.Domain.Exceptions;
|
|
|
|
public class BusinessException : AggregateException
|
|
{
|
|
public BusinessException(HttpStatusCode status, string message) : base($"{status}: {message}")
|
|
{
|
|
}
|
|
|
|
public BusinessException(string message, Exception exception) : base(message, exception)
|
|
{
|
|
}
|
|
} |