mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-24 22:35:39 -04:00
@@ -1,8 +1,4 @@
|
||||
using NzbDrone.Common.Exceptions;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace NzbDrone.Core.Exceptions
|
||||
{
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
using NzbDrone.Common.Exceptions;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace NzbDrone.Core.Exceptions
|
||||
{
|
||||
|
||||
@@ -4,11 +4,13 @@ namespace NzbDrone.Core.Exceptions
|
||||
{
|
||||
public class BadRequestException : DownstreamException
|
||||
{
|
||||
public BadRequestException(string message) : base(HttpStatusCode.BadRequest, message)
|
||||
public BadRequestException(string message)
|
||||
: base(HttpStatusCode.BadRequest, message)
|
||||
{
|
||||
}
|
||||
|
||||
public BadRequestException(string message, params object[] args) : base(HttpStatusCode.BadRequest, message, args)
|
||||
public BadRequestException(string message, params object[] args)
|
||||
: base(HttpStatusCode.BadRequest, message, args)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,7 +7,8 @@ namespace NzbDrone.Core.Exceptions
|
||||
{
|
||||
public HttpStatusCode StatusCode { get; private set; }
|
||||
|
||||
public DownstreamException(HttpStatusCode statusCode, string message, params object[] args) : base(message, args)
|
||||
public DownstreamException(HttpStatusCode statusCode, string message, params object[] args)
|
||||
: base(message, args)
|
||||
{
|
||||
StatusCode = statusCode;
|
||||
}
|
||||
|
||||
@@ -7,7 +7,8 @@ namespace NzbDrone.Core.Exceptions
|
||||
{
|
||||
public HttpStatusCode StatusCode { get; private set; }
|
||||
|
||||
public NzbDroneClientException(HttpStatusCode statusCode, string message, params object[] args) : base(message, args)
|
||||
public NzbDroneClientException(HttpStatusCode statusCode, string message, params object[] args)
|
||||
: base(message, args)
|
||||
{
|
||||
StatusCode = statusCode;
|
||||
}
|
||||
|
||||
@@ -8,7 +8,8 @@ namespace NzbDrone.Core.Exceptions
|
||||
{
|
||||
public ReleaseInfo Release { get; set; }
|
||||
|
||||
public ReleaseDownloadException(ReleaseInfo release, string message, params object[] args) : base(message, args)
|
||||
public ReleaseDownloadException(ReleaseInfo release, string message, params object[] args)
|
||||
: base(message, args)
|
||||
{
|
||||
Release = release;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user