From 32d6909045b2bc5cb1ba8bffd9055b343d64917a Mon Sep 17 00:00:00 2001 From: Keivan Beigi Date: Fri, 5 Jul 2013 16:53:05 -0700 Subject: [PATCH] fixed Ajax errors not being displayed in the UI. --- .../Exceptions/NzbDroneException.cs | 26 +++++++ NzbDrone.Common/NzbDrone.Common.csproj | 2 + NzbDrone.Core.Test/NzbDrone.Core.Test.csproj | 2 +- .../Qualities/QualityProfileFixture.cs | 39 ---------- .../Qualities/QualityProfileServiceFixture.cs | 75 +++++++++++++++++++ NzbDrone.Core/MediaFiles/MediaFileService.cs | 2 - NzbDrone.Core/NzbDrone.Core.csproj | 1 + .../Qualities/QualityProfileInUseException.cs | 13 ++++ .../Qualities/QualityProfileService.cs | 16 +++- NzbDrone.Core/Qualities/QualitySize.cs | 3 +- UI/app.js | 7 +- 11 files changed, 134 insertions(+), 52 deletions(-) create mode 100644 NzbDrone.Common/Exceptions/NzbDroneException.cs delete mode 100644 NzbDrone.Core.Test/Qualities/QualityProfileFixture.cs create mode 100644 NzbDrone.Core.Test/Qualities/QualityProfileServiceFixture.cs create mode 100644 NzbDrone.Core/Qualities/QualityProfileInUseException.cs diff --git a/NzbDrone.Common/Exceptions/NzbDroneException.cs b/NzbDrone.Common/Exceptions/NzbDroneException.cs new file mode 100644 index 000000000..67b467a37 --- /dev/null +++ b/NzbDrone.Common/Exceptions/NzbDroneException.cs @@ -0,0 +1,26 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace NzbDrone.Common.Exceptions +{ + + + public abstract class NzbDroneException : ApplicationException + { + protected NzbDroneException(string message, params object[] args) + : base(string.Format(message, args)) + { + + } + + + protected NzbDroneException(string message) + : base(message) + { + + } + } + +} diff --git a/NzbDrone.Common/NzbDrone.Common.csproj b/NzbDrone.Common/NzbDrone.Common.csproj index c18a6f6b4..cd7ad1b32 100644 --- a/NzbDrone.Common/NzbDrone.Common.csproj +++ b/NzbDrone.Common/NzbDrone.Common.csproj @@ -106,6 +106,7 @@ + @@ -176,6 +177,7 @@ Exceptron.Client +