using System;
namespace Kyoo.Models.Exceptions
{
///
/// An exception raised when a plugin requires dependencies that can't be found with the current configuration.
///
[Serializable]
public class MissingDependencyException : Exception
{
///
/// Create a new with a custom message
///
/// The name of the plugin that can't be loaded.
/// The name of the missing dependency.
public MissingDependencyException(string plugin, string dependency)
: base($"No {dependency} are available in Kyoo but the plugin {plugin} requires it.")
{}
}
}