server-master/srcs/WingsAPI.Plugins/Exceptions/CriticalPluginException.cs
2026-02-10 18:21:30 +01:00

16 lines
No EOL
479 B
C#

// WingsEmu
//
// Developed by NosWings Team
namespace WingsAPI.Plugins.Exceptions
{
/// <summary>
/// This exception should be thrown only if you need to stop the software
/// </summary>
public class CriticalPluginException : PluginException
{
public CriticalPluginException(IPlugin plugin, string message = "Critical Plugin Exception") : base($"[{plugin.Name}] {message}") => Plugin = plugin;
public IPlugin Plugin { get; }
}
}