-
Notifications
You must be signed in to change notification settings - Fork 278
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
don't set plugin to fail state if we threw InvalidPluginOperationExce…
…ption These are supposed to indicate to the user that they called a function at the wrong point in time. We don't want to actually mutate the state in that case.
- Loading branch information
Showing
2 changed files
with
24 additions
and
3 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
Dalamud/Plugin/Internal/Exceptions/InternalPluginStateException.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
namespace Dalamud.Plugin.Internal.Exceptions; | ||
|
||
/// <summary> | ||
/// An exception to be thrown when policy blocks a plugin from loading. | ||
/// </summary> | ||
internal class InternalPluginStateException : InvalidPluginOperationException | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="InternalPluginStateException"/> class. | ||
/// </summary> | ||
/// <param name="message">The message to associate with this exception.</param> | ||
public InternalPluginStateException(string message) | ||
: base(message) | ||
{ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters