Files
Readarr/src/NzbDrone.Core/Exceptions/BookNotFoundException.cs
T
2025-01-20 16:45:27 +02:00

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;
}
}
}