public sealed class RunicWindowConfigurationException : InvalidOperationException Reports a Window configuration that failed a check before the window opened, on any host.
Remarks
RunicWindowHostExtensions.OpenWindowAsync and RunicWindowValidationResult.ThrowIfInvalid throw it. A host that rejects its own configuration, such as Runic Desktop's window options, reports its diagnostics here too, with its own exception as the inner exception.
Constructors
RunicWindowConfigurationException
public RunicWindowConfigurationException(IReadOnlyList<RunicWindowDiagnostic> diagnostics) Creates an exception that lists every failed check in its message.
RunicWindowConfigurationException
public RunicWindowConfigurationException(IReadOnlyList<RunicWindowDiagnostic> diagnostics, Exception? innerException) Creates an exception that lists every failed check in its message and keeps the host's own exception.
Fields
BridgeNotRegisteredCode
public const string BridgeNotRegisteredCode = "bridge-not-registered" The code reported when no generated Bridge is registered for the Window's ViewModel.
OptionInvalidCode
public const string OptionInvalidCode = "window-option-invalid" The code reported when a RunicWindowOptions value is invalid.
ViewModelNotRegisteredCode
public const string ViewModelNotRegisteredCode = "viewmodel-not-registered" The code of the warning reported when the container does not confirm the ViewModel registration.
WindowParameterNotRegisteredCode
public const string WindowParameterNotRegisteredCode = "window-parameter-not-registered" The code reported when a Window opens with a parameter but RunicWindowServiceCollectionExtensions.AddRunicWindowService was not called.
Properties
Diagnostics
public IReadOnlyList<RunicWindowDiagnostic> Diagnostics { get; } Gets the failed checks.