Dalamud/Dalamud/Plugin/Internal/Exceptions/PluginPreconditionFailedException.cs
KazWolfe 01cde50a46
chore: Suppress expected load errors (#1593)
- Add new `PluginPreconditionFailedException` to track cases where a plugin could not be loaded due to a precondition not being met.
  - Make `BannedPluginException` inherit from this
- Make `PluginPreconditionFailedException`s show as warnings in the log.
2024-01-01 16:11:09 +01:00

16 lines
553 B
C#

namespace Dalamud.Plugin.Internal.Exceptions;
/// <summary>
/// An exception to be thrown when policy blocks a plugin from loading.
/// </summary>
internal class PluginPreconditionFailedException : InvalidPluginOperationException
{
/// <summary>
/// Initializes a new instance of the <see cref="PluginPreconditionFailedException"/> class.
/// </summary>
/// <param name="message">The message to associate with this exception.</param>
public PluginPreconditionFailedException(string message)
: base(message)
{
}
}