GameDataDiagnostic14.1
Class in Unbroken.LaunchBox.Plugins.Components.GameData
public sealed class GameDataDiagnosticDescribes a source outcome without exposing implementation exceptions.
Constructors
GameDataDiagnosticCreates a translatable diagnostic.
GameDataDiagnostic
public GameDataDiagnostic(
string code,
DiagnosticSeverity severity,
PluginText message,
string? gameId = null
)Creates a translatable diagnostic.
code- Stable diagnostic code.
severity- Diagnostic severity.
message- User-facing message with an English fallback.
gameId- Optional source-local game scope.
Properties
CodeGets the stable diagnostic code.GameIdGets optional game scope.HelpGets or initializes localized guidance and an optional help link for resolving the diagnostic.LogMessageGets or initializes literal technical detail for diagnostic logs; this text is not user-facing or localized.MessageGets translatable user-facing text.SeverityGets the severity.
Code
public string Code { get; }Gets the stable diagnostic code.
GameId
public string? GameId { get; }Gets optional game scope.
Help
public DiagnosticHelp? Help { get; init; }Gets or initializes localized guidance and an optional help link for resolving the diagnostic.
LogMessage
public string? LogMessage { get; init; }Gets or initializes literal technical detail for diagnostic logs; this text is not user-facing or localized.
Message
public PluginText Message { get; }Gets translatable user-facing text.
Severity
public DiagnosticSeverity Severity { get; }Gets the severity.