From 767cdc1f6f6a63ce997fc9476911e2c361f9d402 Mon Sep 17 00:00:00 2001 From: LukePulverenti Date: Wed, 20 Feb 2013 20:33:05 -0500 Subject: Pushing missing changes --- MediaBrowser.Model/Net/HttpException.cs | 43 +++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 MediaBrowser.Model/Net/HttpException.cs (limited to 'MediaBrowser.Model/Net/HttpException.cs') diff --git a/MediaBrowser.Model/Net/HttpException.cs b/MediaBrowser.Model/Net/HttpException.cs new file mode 100644 index 000000000..698b1bc7e --- /dev/null +++ b/MediaBrowser.Model/Net/HttpException.cs @@ -0,0 +1,43 @@ +using System; +using System.Net; + +namespace MediaBrowser.Model.Net +{ + /// + /// Class HttpException + /// + public class HttpException : Exception + { + /// + /// Gets or sets the status code. + /// + /// The status code. + public HttpStatusCode? StatusCode { get; set; } + + /// + /// Gets or sets a value indicating whether this instance is timed out. + /// + /// true if this instance is timed out; otherwise, false. + public bool IsTimedOut { get; set; } + + /// + /// Initializes a new instance of the class. + /// + /// The message. + /// The inner exception. + public HttpException(string message, Exception innerException) + : base(message, innerException) + { + + } + + /// + /// Initializes a new instance of the class. + /// + /// The message. + public HttpException(string message) + : base(message) + { + } + } +} -- cgit v1.2.3