Newer
Older
TheCleanArchitecture / src / Application / Common / Exceptions / NotFoundException.cs
@Derek Comartin Derek Comartin on 15 Jun 2021 596 bytes Reorganized
using System;

namespace CleanArchitecture.Application.Common.Exceptions
{
    public class NotFoundException : Exception
    {
        public NotFoundException()
            : base()
        {
        }

        public NotFoundException(string message)
            : base(message)
        {
        }

        public NotFoundException(string message, Exception innerException)
            : base(message, innerException)
        {
        }

        public NotFoundException(string name, object key)
            : base($"Entity \"{name}\" ({key}) was not found.")
        {
        }
    }
}