mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 05:23:31 -07:00
Added NMA support, also added generic HttpStatusCode handling
This commit is contained in:
parent
de012aec21
commit
eb7dda0629
12 changed files with 254 additions and 2 deletions
21
NzbDrone.Core/Exceptions/DownstreamException.cs
Normal file
21
NzbDrone.Core/Exceptions/DownstreamException.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue