RunicBridgeContractException class

Namespace Runic.Application.Views in Runic.Application.Views 0.23.0

public sealed class RunicBridgeContractException : InvalidOperationException

Inherits or implements InvalidOperationException.

Reports generated Bridges that were built against another Runic release than the running Runic.Application.Views (RUNICBRIDGE038). Rebuild RunicBridgeContractException.AssemblyName against this release.

Remarks

The generated AddRunicBridges() throws it before it registers a Bridge, when the library's generated-code contract differs from this runtime's. A library generated before 0.19 has no such check, so the host throws it when its first Window or View attaches the Bridge, with the TypeLoadException or MissingMemberException of the stale Bridge as the inner exception.

Fields

DiagnosticId

public const string DiagnosticId = "RUNICBRIDGE038"

The diagnostic ID in the message, RUNICBRIDGE038.

Properties

AssemblyName

public string AssemblyName { get; }

Gets the simple name of the assembly whose generated Bridges must be rebuilt.