HttpException.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. using System;
  2. using System.Net;
  3. namespace MediaBrowser.Model.Net
  4. {
  5. /// <summary>
  6. /// Class HttpException
  7. /// </summary>
  8. public class HttpException : Exception
  9. {
  10. /// <summary>
  11. /// Gets or sets the status code.
  12. /// </summary>
  13. /// <value>The status code.</value>
  14. public HttpStatusCode? StatusCode { get; set; }
  15. /// <summary>
  16. /// Gets or sets a value indicating whether this instance is timed out.
  17. /// </summary>
  18. /// <value><c>true</c> if this instance is timed out; otherwise, <c>false</c>.</value>
  19. public bool IsTimedOut { get; set; }
  20. /// <summary>
  21. /// Initializes a new instance of the <see cref="HttpException" /> class.
  22. /// </summary>
  23. /// <param name="message">The message.</param>
  24. /// <param name="innerException">The inner exception.</param>
  25. public HttpException(string message, Exception innerException)
  26. : base(message, innerException)
  27. {
  28. }
  29. /// <summary>
  30. /// Initializes a new instance of the <see cref="HttpException" /> class.
  31. /// </summary>
  32. /// <param name="message">The message.</param>
  33. public HttpException(string message)
  34. : base(message)
  35. {
  36. }
  37. }
  38. }