Fixed: Now shows UI notification if downloading nzb from indexer fails.

This commit is contained in:
Taloth Saldono
2014-09-07 13:39:00 +02:00
parent 70fc927e9f
commit 56436fea69
10 changed files with 145 additions and 60 deletions
@@ -0,0 +1,34 @@
using System;
using NzbDrone.Common.Exceptions;
using NzbDrone.Core.Parser.Model;
namespace NzbDrone.Core.Exceptions
{
public class ReleaseDownloadException : NzbDroneException
{
public ReleaseInfo Release { get; set; }
public ReleaseDownloadException(ReleaseInfo release, String message, params Object[] args) : base(message, args)
{
Release = release;
}
public ReleaseDownloadException(ReleaseInfo release, String message)
: base(message)
{
Release = release;
}
public ReleaseDownloadException(ReleaseInfo release, String message, Exception innerException, params Object[] args)
: base(message, innerException, args)
{
Release = release;
}
public ReleaseDownloadException(ReleaseInfo release, String message, Exception innerException)
: base(message, innerException)
{
Release = release;
}
}
}