mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-18 21:34:28 -04:00
Better client side errors when there are issues communicating with trakt.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace NzbDrone.Common.Exceptions
|
||||
{
|
||||
|
||||
|
||||
public abstract class NzbDroneException : ApplicationException
|
||||
{
|
||||
protected NzbDroneException(string message, params object[] args)
|
||||
|
||||
Reference in New Issue
Block a user