mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-25 22:36:59 -04:00
Fixed: Tag deletion via api if tag is still in use
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using NzbDrone.Common.Exceptions;
|
||||
|
||||
namespace NzbDrone.Core.Datastore
|
||||
{
|
||||
public class ModelConflictException : NzbDroneException
|
||||
{
|
||||
public ModelConflictException(Type modelType, int modelId)
|
||||
: base("{0} with ID {1} cannot be modified", modelType.Name, modelId)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public ModelConflictException(Type modelType, int modelId, string message)
|
||||
: base("{0} with ID {1} {2}", modelType.Name, modelId, message)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user