mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-21 01:49:57 +02:00
22 lines
571 B
C#
22 lines
571 B
C#
|
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;
|
||
|
}
|
||
|
}
|
||
|
}
|