2019-01-13 13:02:23 -07:00
|
|
|
using System;
|
2018-12-27 16:27:57 -07:00
|
|
|
using System.Net;
|
|
|
|
|
|
|
|
namespace MediaBrowser.Model.Net
|
|
|
|
{
|
|
|
|
/// <summary>
|
2020-02-03 17:49:27 -07:00
|
|
|
/// Class HttpException.
|
2018-12-27 16:27:57 -07:00
|
|
|
/// </summary>
|
|
|
|
public class HttpException : Exception
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the status code.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The status code.</value>
|
|
|
|
public HttpStatusCode? StatusCode { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets a value indicating whether this instance is timed out.
|
|
|
|
/// </summary>
|
|
|
|
/// <value><c>true</c> if this instance is timed out; otherwise, <c>false</c>.</value>
|
|
|
|
public bool IsTimedOut { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Initializes a new instance of the <see cref="HttpException" /> class.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="message">The message.</param>
|
|
|
|
/// <param name="innerException">The inner exception.</param>
|
|
|
|
public HttpException(string message, Exception innerException)
|
|
|
|
: base(message, innerException)
|
|
|
|
{
|
2019-01-07 16:27:46 -07:00
|
|
|
|
2018-12-27 16:27:57 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Initializes a new instance of the <see cref="HttpException" /> class.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="message">The message.</param>
|
|
|
|
public HttpException(string message)
|
|
|
|
: base(message)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|