Vixen
02b45cc4
csharp
public record class PluginDiagnostic

Something the loader has to say about one plugin.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

Returned rather than logged, and rather than thrown. Thrown, the first broken plugin in a folder of six stops the editor from starting; logged, it is a line in a file nobody reads while the user wonders why their toolbar is missing a button. As data it can be a notification, a row in a plugin panel, and a test's assertion — which is what the importers' ImportResult and the settings store's UnknownKeys already do.

Fields and properties (3)

  • public PluginSeverity Severity

    How much it matters.

  • public string PluginId

    Which plugin, or the folder's name when the manifest had no usable id.

  • public string Message

    What happened, in the words a plugin author needs to fix it.

Methods (2)

  • public PluginDiagnostic(PluginSeverity Severity, string PluginId, string Message)

    Something the loader has to say about one plugin.

  • public override string ToString()

    Returns a string that represents the current object.

Used by (10)

  • DiscoveryTestsVixen.Editor.Plugin.Tests
  • EditorApplicationVixen.Editor.App
  • LoadingTestsVixen.Editor.Plugin.Tests
  • ModuleTestsVixen.Editor.Plugin.Tests
  • OrderTestsVixen.Editor.Plugin.Tests
  • PluginCatalogVixen.Editor.Plugin
  • PluginDiscoveryVixen.Editor.Plugin
  • PluginHostVixen.Editor.Plugin
  • PluginOrderVixen.Editor.Plugin
  • PluginReportVixen.Editor.Plugin