mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-20 21:54:25 -04:00
28 lines
794 B
C#
28 lines
794 B
C#
using NzbDrone.Common.Exceptions;
|
|
|
|
namespace NzbDrone.Core.Exceptions
|
|
{
|
|
public class BookNotFoundException : NzbDroneException
|
|
{
|
|
public string ForeignBookId { get; set; }
|
|
|
|
public BookNotFoundException(string foreignBookId)
|
|
: base($"Book with id {foreignBookId} was not found, it may have been removed from metadata server.")
|
|
{
|
|
ForeignBookId = foreignBookId;
|
|
}
|
|
|
|
public BookNotFoundException(string foreignBookId, string message, params object[] args)
|
|
: base(message, args)
|
|
{
|
|
ForeignBookId = foreignBookId;
|
|
}
|
|
|
|
public BookNotFoundException(string foreignBookId, string message)
|
|
: base(message)
|
|
{
|
|
ForeignBookId = foreignBookId;
|
|
}
|
|
}
|
|
}
|