mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-18 21:35:51 -04:00
Getting model by invalid ID throws a more specific exception.
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using NzbDrone.Common.Exceptions;
|
||||
|
||||
namespace NzbDrone.Core.Datastore
|
||||
{
|
||||
public class ModelNotFoundException : NzbDroneException
|
||||
{
|
||||
public ModelNotFoundException(Type modelType, int modelId)
|
||||
: base("{0} with ID {1} does not exist", modelType.Name, modelId)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user