LaunchBoxContributors
On this page

GameDataDiagnostic14.1

Class in Unbroken.LaunchBox.Plugins.Components.GameData

C#
public sealed class GameDataDiagnostic
Describes a source outcome without exposing implementation exceptions.

Constructors

GameDataDiagnostic

C#
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

C#
public string Code { get; }
Gets the stable diagnostic code.

GameId

C#
public string? GameId { get; }
Gets optional game scope.

Help

C#
public DiagnosticHelp? Help { get; init; }
Gets or initializes localized guidance and an optional help link for resolving the diagnostic.

LogMessage

C#
public string? LogMessage { get; init; }
Gets or initializes literal technical detail for diagnostic logs; this text is not user-facing or localized.

Message

C#
public PluginText Message { get; }
Gets translatable user-facing text.

Severity

C#
public DiagnosticSeverity Severity { get; }
Gets the severity.