|
|
@ -1,4 +1,5 @@
|
|
|
|
using System.Net;
|
|
|
|
using System;
|
|
|
|
|
|
|
|
using System.Net;
|
|
|
|
using NzbDrone.Common.Exceptions;
|
|
|
|
using NzbDrone.Common.Exceptions;
|
|
|
|
|
|
|
|
|
|
|
|
namespace NzbDrone.Core.Exceptions
|
|
|
|
namespace NzbDrone.Core.Exceptions
|
|
|
@ -7,7 +8,13 @@ namespace NzbDrone.Core.Exceptions
|
|
|
|
{
|
|
|
|
{
|
|
|
|
public HttpStatusCode StatusCode { get; private set; }
|
|
|
|
public HttpStatusCode StatusCode { get; private set; }
|
|
|
|
|
|
|
|
|
|
|
|
public NzbDroneClientException(HttpStatusCode statusCode, string message, params object[] args) : base(message, args)
|
|
|
|
public NzbDroneClientException(HttpStatusCode statusCode, string message, params object[] args)
|
|
|
|
|
|
|
|
: base(message, args)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
StatusCode = statusCode;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
public NzbDroneClientException(HttpStatusCode statusCode, string message, Exception innerException, params object[] args)
|
|
|
|
|
|
|
|
: base(message, innerException, args)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
StatusCode = statusCode;
|
|
|
|
StatusCode = statusCode;
|
|
|
|
}
|
|
|
|
}
|
|
|
|