NotFoundException.cs 850 B

1234567891011121314151617181920212223242526272829
  1. using System;
  2. using System.Net;
  3. namespace OSHttpServer.Exceptions
  4. {
  5. /// <summary>
  6. /// The requested resource was not found in the web server.
  7. /// </summary>
  8. public class NotFoundException : HttpException
  9. {
  10. /// <summary>
  11. /// Create a new exception
  12. /// </summary>
  13. /// <param name="message">message describing the error</param>
  14. /// <param name="inner">inner exception</param>
  15. public NotFoundException(string message, Exception inner) : base(HttpStatusCode.NotFound, message, inner)
  16. {
  17. }
  18. /// <summary>
  19. /// Create a new exception
  20. /// </summary>
  21. /// <param name="message">message describing the error</param>
  22. public NotFoundException(string message)
  23. : base(HttpStatusCode.NotFound, message)
  24. {
  25. }
  26. }
  27. }