mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 05:23:31 -07:00
Better client side errors when there are issues communicating with trakt.
This commit is contained in:
parent
377e5d28e9
commit
0c57c6a6c1
10 changed files with 95 additions and 37 deletions
20
NzbDrone.Common/Exceptions/NzbDroneClientException.cs
Normal file
20
NzbDrone.Common/Exceptions/NzbDroneClientException.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue