mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-15 05:04:15 +01:00
- 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.
16 lines
553 B
C#
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)
|
|
{
|
|
}
|
|
}
|