mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-19 21:44:30 -04:00
18253a298e
(cherry picked from commit 6672650b6b5e152e82fb3ad38a0a158d66c0b83d)
30 lines
847 B
C#
30 lines
847 B
C#
using System;
|
|
using System.Net;
|
|
using NzbDrone.Common.Exceptions;
|
|
|
|
namespace NzbDrone.Core.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, Exception innerException, params object[] args)
|
|
: base(message, innerException, args)
|
|
{
|
|
StatusCode = statusCode;
|
|
}
|
|
|
|
public NzbDroneClientException(HttpStatusCode statusCode, string message)
|
|
: base(message)
|
|
{
|
|
StatusCode = statusCode;
|
|
}
|
|
}
|
|
}
|