WebDavNotImplementedException.cs 1.1 KB

123456789101112131415161718192021222324252627282930
  1. using System;
  2. using System.Net;
  3. namespace WebDAVSharp.Server.Exceptions
  4. {
  5. /// <summary>
  6. /// This exception is thrown when a request uses a HTTP method or functionality that has yet to
  7. /// be implemented.
  8. /// Statuscode: 501 Not Implemented.
  9. /// </summary>
  10. [Serializable]
  11. public class WebDavNotImplementedException : WebDavException
  12. {
  13. /// <summary>
  14. /// Initializes a new instance of the <see cref="WebDavNotImplementedException" /> class.
  15. /// </summary>
  16. /// <param name="message">The exception message stating the reason for the exception being thrown.</param>
  17. /// <param name="innerException">
  18. /// The
  19. /// <see cref="Exception" /> that is the cause for this exception;
  20. /// or
  21. /// <c>null</c> if no inner exception is specified.
  22. /// </param>
  23. public WebDavNotImplementedException(string message = null, Exception innerException = null)
  24. : base(HttpStatusCode.NotImplemented, message, innerException)
  25. {
  26. // Do nothing here
  27. }
  28. }
  29. }