Better client side errors when there are issues communicating with trakt.

This commit is contained in:
Mark McDowall 2013-09-08 23:40:24 -07:00
commit 0c57c6a6c1
10 changed files with 95 additions and 37 deletions

View file

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