WebDavPreconditionFailedException.cs 1.0 KB

12345678910111213141516171819202122232425262728
  1. using System;
  2. using System.Net;
  3. namespace WebDAVSharp.Server.Exceptions
  4. {
  5. /// <summary>
  6. /// This exception is thrown when one of the preconditions failed.
  7. /// Statuscode: 412 Precondition Failed.
  8. /// </summary>
  9. public class WebDavPreconditionFailedException : WebDavException
  10. {
  11. /// <summary>
  12. /// Initializes a new instance of the <see cref="WebDavPreconditionFailedException" /> class.
  13. /// </summary>
  14. /// <param name="message">The exception message stating the reason for the exception being thrown.</param>
  15. /// <param name="innerException">
  16. /// The
  17. /// <see cref="Exception" /> that is the cause for this exception;
  18. /// or
  19. /// <c>null</c> if no inner exception is specified.
  20. /// </param>
  21. public WebDavPreconditionFailedException(string message = null, Exception innerException = null)
  22. : base(HttpStatusCode.PreconditionFailed, message, innerException)
  23. {
  24. // Do nothing here
  25. }
  26. }
  27. }