mirror of
https://github.com/meysamhadeli/booking-microservices.git
synced 2026-04-10 17:59:38 +08:00
chore: cleanup unused files
This commit is contained in:
parent
aeb19e2f4b
commit
406d3e16e7
@ -1,14 +0,0 @@
|
||||
using System.Net;
|
||||
|
||||
namespace BuildingBlocks.Exception;
|
||||
|
||||
public class AppException : CustomException
|
||||
{
|
||||
public AppException(string message, HttpStatusCode statusCode = HttpStatusCode.BadRequest, int? code = null) : base(message, statusCode, code: code)
|
||||
{
|
||||
}
|
||||
|
||||
public AppException(string message, System.Exception innerException, HttpStatusCode statusCode = HttpStatusCode.BadRequest, int? code = null) : base(message, innerException, statusCode, code)
|
||||
{
|
||||
}
|
||||
}
|
||||
@ -1,13 +0,0 @@
|
||||
using System;
|
||||
using System.Net;
|
||||
|
||||
namespace BuildingBlocks.Exception
|
||||
{
|
||||
public class BadRequestException : CustomException
|
||||
{
|
||||
public BadRequestException(string message, int? code = null) : base(message, HttpStatusCode.BadRequest, code: code)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,11 +0,0 @@
|
||||
using System.Net;
|
||||
|
||||
namespace BuildingBlocks.Exception
|
||||
{
|
||||
public class ConflictException : CustomException
|
||||
{
|
||||
public ConflictException(string message, int? code = null) : base(message, HttpStatusCode.Conflict, code: code)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,37 +0,0 @@
|
||||
using System.Net;
|
||||
|
||||
namespace BuildingBlocks.Exception;
|
||||
|
||||
public class CustomException : System.Exception
|
||||
{
|
||||
public CustomException(
|
||||
string message,
|
||||
HttpStatusCode statusCode = HttpStatusCode.InternalServerError,
|
||||
int? code = null) : base(message)
|
||||
{
|
||||
StatusCode = statusCode;
|
||||
Code = code;
|
||||
}
|
||||
|
||||
public CustomException(
|
||||
string message,
|
||||
System.Exception innerException,
|
||||
HttpStatusCode statusCode = HttpStatusCode.InternalServerError,
|
||||
int? code = null) : base(message, innerException)
|
||||
{
|
||||
StatusCode = statusCode;
|
||||
Code = code;
|
||||
}
|
||||
|
||||
public CustomException(
|
||||
HttpStatusCode statusCode = HttpStatusCode.InternalServerError,
|
||||
int? code = null) : base()
|
||||
{
|
||||
StatusCode = statusCode;
|
||||
Code = code;
|
||||
}
|
||||
|
||||
public HttpStatusCode StatusCode { get; }
|
||||
|
||||
public int? Code { get; }
|
||||
}
|
||||
@ -1,16 +0,0 @@
|
||||
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)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,17 +0,0 @@
|
||||
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))
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,11 +0,0 @@
|
||||
using System.Net;
|
||||
|
||||
namespace BuildingBlocks.Exception
|
||||
{
|
||||
public class NotFoundException : CustomException
|
||||
{
|
||||
public NotFoundException(string message, int? code = null) : base(message, HttpStatusCode.NotFound, code: code)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,11 +0,0 @@
|
||||
using System.Net;
|
||||
|
||||
namespace BuildingBlocks.Exception
|
||||
{
|
||||
public class ValidationException : CustomException
|
||||
{
|
||||
public ValidationException(string message, int? code = null) : base(message, HttpStatusCode.BadRequest, code: code)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user