mirror of
https://github.com/meysamhadeli/booking-microservices.git
synced 2026-04-10 17:59:38 +08:00
16 lines
534 B
C#
16 lines
534 B
C#
using System.Net;
|
|
using BuildingBlocks.Exception;
|
|
|
|
namespace SmartCharging.Infrastructure.Exceptions
|
|
{
|
|
public class DomainException : CustomException
|
|
{
|
|
public DomainException(string message, HttpStatusCode statusCode = HttpStatusCode.BadRequest) : base(message, statusCode)
|
|
{
|
|
}
|
|
|
|
public DomainException(string message, Exception innerException, HttpStatusCode statusCode = HttpStatusCode.BadRequest, int? code = null) : base(message, innerException, statusCode, code)
|
|
{
|
|
}
|
|
}
|
|
} |