using System; namespace Artemis.Core; /// /// An exception thrown when a plugin-related error occurs /// public class ArtemisPluginException : Exception { /// /// Creates a new instance of the class /// public ArtemisPluginException(Plugin plugin) { Plugin = plugin; } /// /// Creates a new instance of the class /// public ArtemisPluginException(Plugin plugin, string message) : base(message) { Plugin = plugin; } /// /// Creates a new instance of the class /// public ArtemisPluginException(Plugin plugin, string message, Exception inner) : base(message, inner) { Plugin = plugin; } /// /// Creates a new instance of the class /// public ArtemisPluginException(string message) : base(message) { } /// /// Creates a new instance of the class /// public ArtemisPluginException(string message, Exception inner) : base(message, inner) { } /// /// Gets the plugin the error is related to /// public Plugin? Plugin { get; } }