Files
UniVerse/backend/UniVerse.Domain/Exceptions/NotFoundException.cs
2026-04-28 15:52:05 +03:00

14 lines
296 B
C#

namespace UniVerse.Domain.Exceptions;
public class NotFoundException : Exception
{
public NotFoundException(string entityName, object key)
: base($"{entityName} with key '{key}' was not found.")
{
}
public NotFoundException(string message) : base(message)
{
}
}