mirror of
https://github.com/Sonarr/Sonarr.git
synced 2026-04-24 22:36:19 -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