mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-16 11:37:58 +02:00
Moved NotParentException to Disk namespace
This commit is contained in:
parent
73cb789f59
commit
a9e1aee295
@ -1,4 +1,6 @@
|
|||||||
namespace NzbDrone.Common.Exceptions
|
using NzbDrone.Common.Exceptions;
|
||||||
|
|
||||||
|
namespace NzbDrone.Common.Disk
|
||||||
{
|
{
|
||||||
public class NotParentException : NzbDroneException
|
public class NotParentException : NzbDroneException
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Text.RegularExpressions;
|
using System.Text.RegularExpressions;
|
||||||
@ -59,7 +59,7 @@ public static string GetRelativePath(this string parentPath, string childPath)
|
|||||||
{
|
{
|
||||||
if (!parentPath.IsParentPath(childPath))
|
if (!parentPath.IsParentPath(childPath))
|
||||||
{
|
{
|
||||||
throw new Exceptions.NotParentException("{0} is not a child of {1}", childPath, parentPath);
|
throw new NotParentException("{0} is not a child of {1}", childPath, parentPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
return childPath.Substring(parentPath.Length).Trim(Path.DirectorySeparatorChar);
|
return childPath.Substring(parentPath.Length).Trim(Path.DirectorySeparatorChar);
|
||||||
|
@ -126,7 +126,7 @@
|
|||||||
<Compile Include="EnvironmentInfo\IRuntimeInfo.cs" />
|
<Compile Include="EnvironmentInfo\IRuntimeInfo.cs" />
|
||||||
<Compile Include="EnvironmentInfo\RuntimeInfo.cs" />
|
<Compile Include="EnvironmentInfo\RuntimeInfo.cs" />
|
||||||
<Compile Include="EnvironmentInfo\StartupContext.cs" />
|
<Compile Include="EnvironmentInfo\StartupContext.cs" />
|
||||||
<Compile Include="Exceptions\NotParentException.cs" />
|
<Compile Include="Disk\NotParentException.cs" />
|
||||||
<Compile Include="Exceptions\NzbDroneException.cs" />
|
<Compile Include="Exceptions\NzbDroneException.cs" />
|
||||||
<Compile Include="Expansive\CircularReferenceException.cs" />
|
<Compile Include="Expansive\CircularReferenceException.cs" />
|
||||||
<Compile Include="Expansive\Expansive.cs" />
|
<Compile Include="Expansive\Expansive.cs" />
|
||||||
|
Loading…
Reference in New Issue
Block a user