Files
tnsu-approval-route/backend/src/Tnsu.ApprovalRoute.Application/Common/Errors/ApiErrors.cs
T
2026-07-23 13:55:53 +05:00

13 lines
398 B
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using FluentResults;
namespace Tnsu.ApprovalRoute.Application.Common.Errors;
public sealed class NotFoundError(string entity, Guid id)
: Error($"{entity} с id {id} не найден.");
public sealed class ValidationError(string message) : Error(message);
public sealed class ConflictError(string message) : Error(message);
public sealed class Warning(string message) : Success(message);