diff --git a/DoliMiddlewareApi/Exceptions/ApiException.cs b/DoliMiddlewareApi/Exceptions/ApiException.cs new file mode 100644 index 0000000..b3290b2 --- /dev/null +++ b/DoliMiddlewareApi/Exceptions/ApiException.cs @@ -0,0 +1,9 @@ +namespace DoliMiddlewareApi.Exceptions; + +public class ApiException : Exception + +{ + public ApiException(string message) : base(message) + { + } +} \ No newline at end of file diff --git a/DoliMiddlewareApi/Exceptions/BadRequestException.cs b/DoliMiddlewareApi/Exceptions/BadRequestException.cs new file mode 100644 index 0000000..fbe271b --- /dev/null +++ b/DoliMiddlewareApi/Exceptions/BadRequestException.cs @@ -0,0 +1,8 @@ +namespace DoliMiddlewareApi.Exceptions; + +public class BadRequestException : Exception +{ + public BadRequestException(string message) : base(message) + { + } +} diff --git a/DoliMiddlewareApi/Exceptions/ForbiddenException.cs b/DoliMiddlewareApi/Exceptions/ForbiddenException.cs new file mode 100644 index 0000000..f1893f0 --- /dev/null +++ b/DoliMiddlewareApi/Exceptions/ForbiddenException.cs @@ -0,0 +1,8 @@ +namespace DoliMiddlewareApi.Exceptions; + +public class ForbiddenException : Exception +{ + public ForbiddenException(string message) : base(message) + { + } +} diff --git a/DoliMiddlewareApi/Exceptions/NotFoundException.cs b/DoliMiddlewareApi/Exceptions/NotFoundException.cs new file mode 100644 index 0000000..b4a0013 --- /dev/null +++ b/DoliMiddlewareApi/Exceptions/NotFoundException.cs @@ -0,0 +1,8 @@ +namespace DoliMiddlewareApi.Exceptions; + +public class NotFoundException : Exception +{ + public NotFoundException(string message) : base(message) + { + } +} diff --git a/DoliMiddlewareApi/Exceptions/UnauthorizedException.cs b/DoliMiddlewareApi/Exceptions/UnauthorizedException.cs new file mode 100644 index 0000000..ccba3c0 --- /dev/null +++ b/DoliMiddlewareApi/Exceptions/UnauthorizedException.cs @@ -0,0 +1,8 @@ +namespace DoliMiddlewareApi.Exceptions; + +public class UnauthorizedException : Exception +{ + public UnauthorizedException(string message) : base(message) + { + } +}