Class ResolutionException
Indicates that the resolution of a DTMI failed.
Implements
Inherited Members
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 SourceUndefinedIdentifierReferences
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. |
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 SourceToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | A string that represents the current object. |