mirror of
https://github.com/meysamhadeli/booking-microservices.git
synced 2026-04-11 02:20:20 +08:00
18 lines
554 B
C#
18 lines
554 B
C#
using System.Globalization;
|
|
using System.Net;
|
|
|
|
namespace BuildingBlocks.Exception
|
|
{
|
|
public class InternalServerException : CustomException
|
|
{
|
|
public InternalServerException() : base() { }
|
|
|
|
public InternalServerException(string message, int? code) : base(message, code: code) { }
|
|
|
|
public InternalServerException(string message, int? code = null, params object[] args)
|
|
: base(message: String.Format(CultureInfo.CurrentCulture, message, args, HttpStatusCode.InternalServerError, code))
|
|
{
|
|
}
|
|
}
|
|
}
|