From ec15f20fdf8a8d4be79c23b8f3e737869c3d11b6 Mon Sep 17 00:00:00 2001 From: Warren Buckley Date: Wed, 11 Aug 2021 13:26:28 +0100 Subject: [PATCH] Replace excetion type from System.Configuration --- src/Umbraco.PublishedCache.NuCache/DataSource/BTree.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Umbraco.PublishedCache.NuCache/DataSource/BTree.cs b/src/Umbraco.PublishedCache.NuCache/DataSource/BTree.cs index c813e428d2..2d276fbaf4 100644 --- a/src/Umbraco.PublishedCache.NuCache/DataSource/BTree.cs +++ b/src/Umbraco.PublishedCache.NuCache/DataSource/BTree.cs @@ -1,7 +1,7 @@ -using System.Configuration; using CSharpTest.Net.Collections; using CSharpTest.Net.Serialization; using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Exceptions; namespace Umbraco.Cms.Infrastructure.PublishedCache.DataSource { @@ -54,9 +54,9 @@ namespace Umbraco.Cms.Infrastructure.PublishedCache.DataSource for (var i = blockSize; i != 1; i >>= 1) bit++; if (1 << bit != blockSize) - throw new ConfigurationErrorsException($"Invalid block size value \"{blockSize}\": must be a power of two."); + throw new ConfigurationException($"Invalid block size value \"{blockSize}\": must be a power of two."); if (blockSize < 512 || blockSize > 65536) - throw new ConfigurationErrorsException($"Invalid block size value \"{blockSize}\": must be >= 512 and <= 65536."); + throw new ConfigurationException($"Invalid block size value \"{blockSize}\": must be >= 512 and <= 65536."); return blockSize; }