From 520aec427b0280056d9dbb42623f1352a79aefb1 Mon Sep 17 00:00:00 2001 From: TekH Date: Wed, 25 Mar 2026 10:27:41 +0100 Subject: [PATCH] Remove obsolete attribute and add exception using directive Removed [Obsolete] from ExceptionHandlingMiddleware, indicating it is no longer deprecated. Added using directive for ReC.Application.Common.Exceptions to support updated exception handling. --- src/ReC.API/Middleware/ExceptionHandlingMiddleware.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/ReC.API/Middleware/ExceptionHandlingMiddleware.cs b/src/ReC.API/Middleware/ExceptionHandlingMiddleware.cs index db5e5f0..887db5d 100644 --- a/src/ReC.API/Middleware/ExceptionHandlingMiddleware.cs +++ b/src/ReC.API/Middleware/ExceptionHandlingMiddleware.cs @@ -7,13 +7,11 @@ using System.Text.Json; namespace ReC.API.Middleware; -//TODO: Fix and use DigitalData.Core.Exceptions.Middleware /// /// Middleware for handling exceptions globally in the application. /// Captures exceptions thrown during the request pipeline execution, /// logs them, and returns an appropriate HTTP response with a JSON error details. /// -[Obsolete("Use DigitalData.Core.Exceptions.Middleware")] public class ExceptionHandlingMiddleware { private readonly RequestDelegate _next;