feat(application): map closing outcomes to API exceptions

This commit is contained in:
2026-10-10 14:57:56 +02:00
parent 3126f025be
commit 315dee2f6c
5 changed files with 82 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
using DigitalData.TaskFlow.Domain.Enums;
namespace DigitalData.TaskFlow.Application.Common.Exceptions;
/// <summary>
/// Represents a 404 API exception.
/// </summary>
public sealed class NotFoundApiException : ApiException
{
/// <summary>
/// Initializes a new instance of the <see cref="NotFoundApiException"/> class.
/// </summary>
/// <param name="message">Response message.</param>
public NotFoundApiException(string message)
: base(404, MetaCode.NotFound, message)
{
}
}