mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-13 05:48:35 +00:00
52 lines
1.4 KiB
C#
52 lines
1.4 KiB
C#
using System;
|
|
|
|
namespace Artemis.Core;
|
|
|
|
/// <summary>
|
|
/// An exception thrown when a plugin-related error occurs
|
|
/// </summary>
|
|
public class ArtemisPluginException : Exception
|
|
{
|
|
/// <summary>
|
|
/// Creates a new instance of the <see cref="ArtemisPluginException" /> class
|
|
/// </summary>
|
|
public ArtemisPluginException(Plugin plugin)
|
|
{
|
|
Plugin = plugin;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Creates a new instance of the <see cref="ArtemisPluginException" /> class
|
|
/// </summary>
|
|
public ArtemisPluginException(Plugin plugin, string message) : base(message)
|
|
{
|
|
Plugin = plugin;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Creates a new instance of the <see cref="ArtemisPluginException" /> class
|
|
/// </summary>
|
|
public ArtemisPluginException(Plugin plugin, string message, Exception inner) : base(message, inner)
|
|
{
|
|
Plugin = plugin;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Creates a new instance of the <see cref="ArtemisPluginException" /> class
|
|
/// </summary>
|
|
public ArtemisPluginException(string message) : base(message)
|
|
{
|
|
}
|
|
|
|
/// <summary>
|
|
/// Creates a new instance of the <see cref="ArtemisPluginException" /> class
|
|
/// </summary>
|
|
public ArtemisPluginException(string message, Exception inner) : base(message, inner)
|
|
{
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets the plugin the error is related to
|
|
/// </summary>
|
|
public Plugin? Plugin { get; }
|
|
} |