From a86b71899ec52c44ddc6c3018e8cc5e9d7ff4d62 Mon Sep 17 00:00:00 2001 From: Andrew Rabert Date: Thu, 27 Dec 2018 18:27:57 -0500 Subject: Add GPL modules --- 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