refactor: Fix serializable issue with CacheException

pull/201/head
Robert Dailey 2 years ago
parent 3c5b139523
commit 32ce3bde21

@ -23,8 +23,6 @@ public class QualityProfileConfigPhase
public IReadOnlyCollection<ProcessedQualityProfileData> Execute(IServiceConfiguration config) public IReadOnlyCollection<ProcessedQualityProfileData> Execute(IServiceConfiguration config)
{ {
// todo: error & throw when there are duplicate profiles in config
ProcessLegacyResetUnmatchedScores(config); ProcessLegacyResetUnmatchedScores(config);
// 1. For each group of CFs that has a quality profile specified // 1. For each group of CFs that has a quality profile specified

@ -1,9 +1,17 @@
using System.Runtime.Serialization;
namespace Recyclarr.TrashLib.Cache; namespace Recyclarr.TrashLib.Cache;
[Serializable]
public class CacheException : Exception public class CacheException : Exception
{ {
public CacheException(string? message) public CacheException(string? message)
: base(message) : base(message)
{ {
} }
protected CacheException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}
} }

Loading…
Cancel
Save