WebDavInternalServerException.cs 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. using System;
  2. using System.Net;
  3. namespace WebDAVSharp.Server.Exceptions
  4. {
  5. /// <summary>
  6. /// This exception is thrown when the server throws a different exception than the standard
  7. /// ones that
  8. /// <see cref="WebDavServer" /> knows how to respond to.
  9. /// Statuscode: 500 Internal Server Error.
  10. /// </summary>
  11. [Serializable]
  12. public class WebDavInternalServerException : WebDavException
  13. {
  14. /// <summary>
  15. /// Initializes a new instance of the <see cref="WebDavInternalServerException" /> class.
  16. /// </summary>
  17. /// <param name="message">The exception message stating the reason for the exception being thrown.</param>
  18. /// <param name="innerException">
  19. /// The
  20. /// <see cref="Exception" /> that is the cause for this exception;
  21. /// or
  22. /// <c>null</c> if no inner exception is specified.
  23. /// </param>
  24. public WebDavInternalServerException(string message = null, Exception innerException = null)
  25. : base(HttpStatusCode.InternalServerError, message, innerException)
  26. {
  27. // Do nothing here
  28. }
  29. }
  30. }