WebDavNotFoundException.cs 1.0 KB

1234567891011121314151617181920212223242526272829
  1. using System;
  2. using System.Net;
  3. namespace WebDAVSharp.Server.Exceptions
  4. {
  5. /// <summary>
  6. /// This exception is thrown when a request tries to access a resource that does not exist.
  7. /// Statuscode: 404 Not Found.
  8. /// </summary>
  9. [Serializable]
  10. public class WebDavNotFoundException : WebDavException
  11. {
  12. /// <summary>
  13. /// Initializes a new instance of the <see cref="WebDavNotFoundException" /> class.
  14. /// </summary>
  15. /// <param name="message">The exception message stating the reason for the exception being thrown.</param>
  16. /// <param name="innerException">
  17. /// The
  18. /// <see cref="Exception" /> that is the cause for this exception;
  19. /// or
  20. /// <c>null</c> if no inner exception is specified.
  21. /// </param>
  22. public WebDavNotFoundException(string message = null, Exception innerException = null)
  23. : base(HttpStatusCode.NotFound, message, innerException)
  24. {
  25. // Do nothing here
  26. }
  27. }
  28. }