mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-26 10:29:18 +01:00
27 lines
796 B
C#
27 lines
796 B
C#
using System;
|
|
|
|
namespace Dalamud.Plugin
|
|
{
|
|
/// <summary>
|
|
/// This exception is thrown when an IPC method is invoked, but nothing has been registered by that name yet.
|
|
/// </summary>
|
|
public class IpcNotReadyError : Exception
|
|
{
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="IpcNotReadyError"/> class.
|
|
/// </summary>
|
|
/// <param name="name">Name of the IPC method.</param>
|
|
public IpcNotReadyError(string name)
|
|
{
|
|
this.Name = name;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets the name of the IPC that was invoked.
|
|
/// </summary>
|
|
public string Name { get; }
|
|
|
|
/// <inheritdoc/>
|
|
public override string Message => $"IPC method {this.Name} was not registered yet";
|
|
}
|
|
}
|