From 9f834b0a48165e1830531a7746f58f81bd1a3ae6 Mon Sep 17 00:00:00 2001 From: Raymond Date: Mon, 23 Aug 2021 12:42:03 -0400 Subject: [PATCH] Rename exception --- Dalamud/Plugin/CallGate.cs | 8 ++++---- .../{IpcNotReadyYetError.cs => IpcNotReadyError.cs} | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) rename Dalamud/Plugin/{IpcNotReadyYetError.cs => IpcNotReadyError.cs} (85%) diff --git a/Dalamud/Plugin/CallGate.cs b/Dalamud/Plugin/CallGate.cs index dc777a35d..3e257805e 100644 --- a/Dalamud/Plugin/CallGate.cs +++ b/Dalamud/Plugin/CallGate.cs @@ -755,18 +755,18 @@ namespace Dalamud.Plugin /// Invoke an action registered for inter-plugin communication. /// /// Action arguments. - /// This is thrown when the IPC publisher has not registered an action for calling yet. + /// This is thrown when the IPC publisher has not registered an action for calling yet. private protected void InvokeAction(params object?[]? args) - => (this.Action ?? throw new IpcNotReadyYetError(this.Name)).DynamicInvoke(args); + => (this.Action ?? throw new IpcNotReadyError(this.Name)).DynamicInvoke(args); /// /// Invoke a function registered for inter-plugin communication. /// /// Parameter args. /// The return value. - /// This is thrown when the IPC publisher has not registered a func for calling yet. + /// This is thrown when the IPC publisher has not registered a func for calling yet. private protected object InvokeFunc(params object?[]? args) - => (this.Func ?? throw new IpcNotReadyYetError(this.Name)).DynamicInvoke(args); + => (this.Func ?? throw new IpcNotReadyError(this.Name)).DynamicInvoke(args); } } diff --git a/Dalamud/Plugin/IpcNotReadyYetError.cs b/Dalamud/Plugin/IpcNotReadyError.cs similarity index 85% rename from Dalamud/Plugin/IpcNotReadyYetError.cs rename to Dalamud/Plugin/IpcNotReadyError.cs index 1c7f97f8d..8be24d577 100644 --- a/Dalamud/Plugin/IpcNotReadyYetError.cs +++ b/Dalamud/Plugin/IpcNotReadyError.cs @@ -5,13 +5,13 @@ namespace Dalamud.Plugin /// /// This exception is thrown when an IPC method is invoked, but nothing has been registered by that name yet. /// - public class IpcNotReadyYetError : Exception + public class IpcNotReadyError : Exception { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// Name of the IPC method. - public IpcNotReadyYetError(string name) + public IpcNotReadyError(string name) { this.Name = name; }