Persists and surfaces plugin load failures

This commit is contained in:
BinaryAlley committed 2026-08-23 05:28:50 -07:00
1 parent 18361d5da7
commit b32cc764a7
11 files changed
+279 -13

No files matched your search

@@ -0,0 +1,16 @@
#region ========================================================================= USING =====================================================================================
using System.Diagnostics;
#endregion
namespace Lumina.Infrastructure.Common.Models.DTO.Plugins;
/// <summary>
/// Data transfer object for the error that occurred while loading a plugin assembly.
/// </summary>
/// <param name="AssemblyName">The file name of the plugin assembly that failed to load, without its extension.</param>
/// <param name="ErrorMessage">The error message describing the load failure.</param>
[DebuggerDisplay("AssemblyName: {AssemblyName}")]
internal sealed record PluginLoadErrorDto(
string AssemblyName,
string ErrorMessage
);
@@ -10,4 +10,7 @@ namespace Lumina.Infrastructure.Common.Models.DTO.Plugins;
/// </summary>
/// <param name="Plugins">The plugins that were loaded successfully.</param>
/// <param name="Errors">The errors that occurred while loading the plugins.</param>
internal sealed record PluginLoadResultDto(IReadOnlyList<IPlugin> Plugins, IReadOnlyList<string> Errors);
internal sealed record PluginLoadResultDto(
IReadOnlyList<IPlugin> Plugins,
IReadOnlyList<PluginLoadErrorDto> Errors
);