mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-14 04:34:16 +01:00
Rename exception
This commit is contained in:
parent
ef7cc2aeb0
commit
9f834b0a48
2 changed files with 7 additions and 7 deletions
|
|
@ -755,18 +755,18 @@ namespace Dalamud.Plugin
|
||||||
/// Invoke an action registered for inter-plugin communication.
|
/// Invoke an action registered for inter-plugin communication.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="args">Action arguments.</param>
|
/// <param name="args">Action arguments.</param>
|
||||||
/// <exception cref="IpcNotReadyYetError">This is thrown when the IPC publisher has not registered an action for calling yet.</exception>
|
/// <exception cref="IpcNotReadyError">This is thrown when the IPC publisher has not registered an action for calling yet.</exception>
|
||||||
private protected void InvokeAction(params object?[]? args)
|
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);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Invoke a function registered for inter-plugin communication.
|
/// Invoke a function registered for inter-plugin communication.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="args">Parameter args.</param>
|
/// <param name="args">Parameter args.</param>
|
||||||
/// <returns>The return value.</returns>
|
/// <returns>The return value.</returns>
|
||||||
/// <exception cref="IpcNotReadyYetError">This is thrown when the IPC publisher has not registered a func for calling yet.</exception>
|
/// <exception cref="IpcNotReadyError">This is thrown when the IPC publisher has not registered a func for calling yet.</exception>
|
||||||
private protected object InvokeFunc(params object?[]? args)
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,13 +5,13 @@ namespace Dalamud.Plugin
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// This exception is thrown when an IPC method is invoked, but nothing has been registered by that name yet.
|
/// This exception is thrown when an IPC method is invoked, but nothing has been registered by that name yet.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class IpcNotReadyYetError : Exception
|
public class IpcNotReadyError : Exception
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new instance of the <see cref="IpcNotReadyYetError"/> class.
|
/// Initializes a new instance of the <see cref="IpcNotReadyError"/> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="name">Name of the IPC method.</param>
|
/// <param name="name">Name of the IPC method.</param>
|
||||||
public IpcNotReadyYetError(string name)
|
public IpcNotReadyError(string name)
|
||||||
{
|
{
|
||||||
this.Name = name;
|
this.Name = name;
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue