Show / Hide Table of Contents

Class ResolutionException

Indicates that the resolution of a DTMI failed.

Inheritance
object
Exception
ResolutionException
Implements
ISerializable
Inherited Members
Exception.GetBaseException()
Exception.GetType()
Exception.Data
Exception.HelpLink
Exception.HResult
Exception.InnerException
Exception.Message
Exception.Source
Exception.StackTrace
Exception.TargetSite
Exception.SerializeObjectState
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: DTDLParser
Assembly: DTDLParser.dll
Syntax
public class ResolutionException : Exception, ISerializable
Remarks

If, when parsing a model, the ModelParser encounters a dependent reference to an identifier that lacks a definition, it attempts to obtain a definition from a registered DtmiResolver or DtmiResolverAsync. This situation can trigger the present exception in one of three circumstances. First, if the parsing is synchronous and no DtmiResolver is registered, or if the parsing is asynchronous and no DtmiResolverAsync is registered. Second, if the regestered resolver returns a value of null, indicating that it is unable to obtain the requested definition. Third, if the registered resolver returns a set of definitions, but the set does not include a definition for one or more of the identfiers passed to the resolver.

Properties

| Edit this page View Source

UndefinedIdentifierReferences

Gets a list of DtmiReference values that each describe a reference to an undefined DTMI in the UndefinedIdentifiers list.

Declaration
public List<DtmiReference> UndefinedIdentifierReferences { get; }
Property Value
Type Description
List<DtmiReference>

A list of DtmiReference values.

| Edit this page View Source

UndefinedIdentifiers

Gets a list of DTMIs that lack definitions and require resolution.

Declaration
public List<Dtmi> UndefinedIdentifiers { get; }
Property Value
Type Description
List<Dtmi>

A list of undefined DTMIs.

Remarks

If the registered resolver returns definitions for some but not all of the requested identifiers, this property lists only the identifiers that still lack definitions after the resolver returns.

Methods

| Edit this page View Source

ToString()

Returns a string that represents the current object.

Declaration
public override string ToString()
Returns
Type Description
string

A string that represents the current object.

Overrides
Exception.ToString()

Implements

ISerializable
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX