2013-09-09 09:40:24 +03:00
|
|
|
using System.Net;
|
2013-09-09 18:09:55 +03:00
|
|
|
using NzbDrone.Common.Exceptions;
|
2013-09-09 09:40:24 +03:00
|
|
|
|
2013-09-09 18:09:55 +03:00
|
|
|
namespace NzbDrone.Core
|
2013-09-09 09:40:24 +03:00
|
|
|
{
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|