NotFoundException.cs 567 B

1234567891011121314151617181920212223242526
  1. namespace AipGateway.API.Domain.Exceptions
  2. {
  3. public class NotFoundException : Exception
  4. {
  5. public NotFoundException()
  6. : base()
  7. {
  8. }
  9. public NotFoundException(string message)
  10. : base(message)
  11. {
  12. }
  13. public NotFoundException(string message, Exception innerException)
  14. : base(message, innerException)
  15. {
  16. }
  17. public NotFoundException(string name, object key)
  18. : base($"Entity \"{name}\" ({key}) was not found.")
  19. {
  20. }
  21. }
  22. }