Added NMA support, also added generic HttpStatusCode handling

This commit is contained in:
Mark McDowall 2013-09-16 11:14:09 -07:00
commit eb7dda0629
12 changed files with 254 additions and 2 deletions

View file

@ -0,0 +1,21 @@
using System.Net;
using NzbDrone.Common.Exceptions;
namespace NzbDrone.Core.Exceptions
{
public class DownstreamException : NzbDroneException
{
public HttpStatusCode StatusCode { get; private set; }
public DownstreamException(HttpStatusCode statusCode, string message, params object[] args) : base(message, args)
{
StatusCode = statusCode;
}
public DownstreamException(HttpStatusCode statusCode, string message)
: base(message)
{
StatusCode = statusCode;
}
}
}