NotFoundException.cs 373 B

1234567891011121314151617
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace MTWorkHR.Application.Exceptions
  7. {
  8. public class NotFoundException: Exception
  9. {
  10. public string Message;
  11. public NotFoundException(string name, object key) : base($"{name} ({key}) was not found")
  12. {
  13. }
  14. }
  15. }