Zum Hauptinhalt springen

ModelValidationException

Namespace: Meshmakers.Octo.ConstructionKit.Contracts

Used to indicate an exception during model validation operations.

public class ModelValidationException : CkModelException, ISerializable

Inheritance Object → Exception → CkModelException → ModelValidationException
Implements ISerializable

Properties​

TargetSite​

public MethodBase TargetSite { get; }

Property Value​

MethodBase

Message​

public string Message { get; }

Property Value​

String

Data​

public IDictionary Data { get; }

Property Value​

IDictionary

InnerException​

public Exception InnerException { get; }

Property Value​

Exception

public string HelpLink { get; set; }

Property Value​

String

Source​

public string Source { get; set; }

Property Value​

String

HResult​

public int HResult { get; set; }

Property Value​

Int32

StackTrace​

public string StackTrace { get; }

Property Value​

String

Constructors​

ModelValidationException()​

public ModelValidationException()

ModelValidationException(String)​

public ModelValidationException(string message)

Parameters​

message String

ModelValidationException(String, Exception)​

public ModelValidationException(string message, Exception inner)

Parameters​

message String

inner Exception

Methods​

UnknownCkTypeIdForInheritance(CkId<CkTypeId>)​

internal static Exception UnknownCkTypeIdForInheritance(CkId<CkTypeId> ckTypeId)

Parameters​

ckTypeId CkId<CkTypeId>

Returns​

Exception

UnknownCkTypeId(CkId<CkTypeId>, String)​

internal static Exception UnknownCkTypeId(CkId<CkTypeId> ckTypeId, string hint)

Parameters​

ckTypeId CkId<CkTypeId>

hint String

Returns​

Exception

UnknownCkRecordId(CkId<CkRecordId>, String)​

internal static Exception UnknownCkRecordId(CkId<CkRecordId> ckRecordId, string hint)

Parameters​

ckRecordId CkId<CkRecordId>

hint String

Returns​

Exception

UnknownCkTypeIdForAssociationTarget(CkId<CkTypeId>, CkId<CkAssociationRoleId>, CkId<CkTypeId>, String)​

internal static Exception UnknownCkTypeIdForAssociationTarget(CkId<CkTypeId> originCkTypeId, CkId<CkAssociationRoleId> entityAssociationRoleId, CkId<CkTypeId> typeAssociationTargetCkTypeId, string hint)

Parameters​

originCkTypeId CkId<CkTypeId>

entityAssociationRoleId CkId<CkAssociationRoleId>

typeAssociationTargetCkTypeId CkId<CkTypeId>

hint String

Returns​

Exception

DerivedFromCkTypeIdThatIsFinal(CkId<CkTypeId>, CkId<CkTypeId>)​

internal static Exception DerivedFromCkTypeIdThatIsFinal(CkId<CkTypeId> currentCkTypeId, CkId<CkTypeId> lastCkTypeId)

Parameters​

currentCkTypeId CkId<CkTypeId>

lastCkTypeId CkId<CkTypeId>

Returns​

Exception

InheritanceMissing(String)​

internal static Exception InheritanceMissing(string typeId)

Parameters​

typeId String

Returns​

Exception

ModelIdContainsInvalidCharacters(String)​

internal static Exception ModelIdContainsInvalidCharacters(string modelId)

Parameters​

modelId String

Returns​

Exception

DerivedFromCkRecordIdThatIsFinal(CkId<CkRecordId>, CkId<CkRecordId>)​

internal static Exception DerivedFromCkRecordIdThatIsFinal(CkId<CkRecordId> currentCkRecordId, CkId<CkRecordId> lastCkRecordId)

Parameters​

currentCkRecordId CkId<CkRecordId>

lastCkRecordId CkId<CkRecordId>

Returns​

Exception

UnknownCkRecordIdForInheritance(CkId<CkRecordId>)​

internal static Exception UnknownCkRecordIdForInheritance(CkId<CkRecordId> ckRecordId)

Parameters​

ckRecordId CkId<CkRecordId>

Returns​

Exception

DuplicateAttributeNamesInCkRecord(CkId<CkRecordId>, IEnumerable<String>)​

internal static Exception DuplicateAttributeNamesInCkRecord(CkId<CkRecordId> ckRecordId, IEnumerable<string> select)

Parameters​

ckRecordId CkId<CkRecordId>

select IEnumerable<String>

Returns​

Exception

DuplicateAttributeIdsInCkRecord(CkId<CkRecordId>, IEnumerable<CkId<CkAttributeId>>)​

internal static Exception DuplicateAttributeIdsInCkRecord(CkId<CkRecordId> ckRecordId, IEnumerable<CkId<CkAttributeId>> duplicateAttributeIds)

Parameters​

ckRecordId CkId<CkRecordId>

duplicateAttributeIds IEnumerable<CkId<CkAttributeId>>

Returns​

Exception

UnknownCkModel(CkModelIdVersionRange)​

internal static Exception UnknownCkModel(CkModelIdVersionRange ckDependency)

Parameters​

ckDependency CkModelIdVersionRange

Returns​

Exception

UnknownCkModels(IReadOnlyCollection<CkModelIdVersionRange>)​

internal static Exception UnknownCkModels(IReadOnlyCollection<CkModelIdVersionRange> resolveResultUnresolvedDependencyModelIds)

Parameters​

resolveResultUnresolvedDependencyModelIds IReadOnlyCollection<CkModelIdVersionRange>

Returns​

Exception

UnknownCkModels(IReadOnlyCollection<CkModelIdVersionRange>, IReadOnlyDictionary<String, String>)​

Unknown dependencies with the versions the readable catalogs do know, so a stale or out-of-order build is diagnosable from the message alone.

internal static Exception UnknownCkModels(IReadOnlyCollection<CkModelIdVersionRange> unresolvedDependencies, IReadOnlyDictionary<string, string> visibleVersionsByModel)

Parameters​

unresolvedDependencies IReadOnlyCollection<CkModelIdVersionRange>

visibleVersionsByModel IReadOnlyDictionary<String, String>

Returns​

Exception

UnknownCkModelsInRepository(IReadOnlyCollection<CkModelIdVersionRange>, IReadOnlyDictionary<String, IReadOnlyList<RepositoryModelVersion>>, String)​

Unresolved dependencies of an import into a repository (a tenant), explained with the versions the repository holds and their state. The repository resolves against its own Available models, never against a catalog, so the text must not say "catalog".

internal static Exception UnknownCkModelsInRepository(IReadOnlyCollection<CkModelIdVersionRange> unresolvedDependencies, IReadOnlyDictionary<string, IReadOnlyList<RepositoryModelVersion>> heldVersionsByModel, string repositoryName)

Parameters​

unresolvedDependencies IReadOnlyCollection<CkModelIdVersionRange>

heldVersionsByModel IReadOnlyDictionary<String, IReadOnlyList<RepositoryModelVersion>>

repositoryName String

Returns​

Exception

ReferenceMissingAtFloor(CkModelId, CkModelIdVersionRange, CkModelId, CkModelId, IEnumerable<String>, CkModelId)​

A range-retaining model references elements of a dependency that do not exist at the floor of the declared range.

internal static Exception ReferenceMissingAtFloor(CkModelId modelId, CkModelIdVersionRange range, CkModelId floorModelId, CkModelId resolvedModelId, IEnumerable<string> missingElements, CkModelId transitiveVia)

Parameters​

modelId CkModelId

range CkModelIdVersionRange

floorModelId CkModelId

resolvedModelId CkModelId

missingElements IEnumerable<String>

transitiveVia CkModelId

Returns​

Exception

RangeSpansSeveralMajors(CkModelId, IEnumerable<CkModelIdVersionRange>)​

Review H6: range retention stores references major-qualified (Basic@2/...), so a dependency range must stay inside one major.

internal static Exception RangeSpansSeveralMajors(CkModelId modelId, IEnumerable<CkModelIdVersionRange> ranges)

Parameters​

modelId CkModelId

ranges IEnumerable<CkModelIdVersionRange>

Returns​

Exception

MultipleVersionsOfCkModel(String, IEnumerable<CkModelId>, IEnumerable<CkModelId>)​

internal static Exception MultipleVersionsOfCkModel(string modelName, IEnumerable<CkModelId> conflictingModelIds, IEnumerable<CkModelId> originModelIds)

Parameters​

modelName String

conflictingModelIds IEnumerable<CkModelId>

originModelIds IEnumerable<CkModelId>

Returns​

Exception

UnsatisfiableDependencyConstraints(String, IEnumerable<ValueTuple<CkModelIdVersionRange, CkModelId>>, String)​

A range-retaining resolve found no catalog version of a model that satisfies all constraints (ranges and exact pins) the closure puts on it.

internal static Exception UnsatisfiableDependencyConstraints(string modelName, IEnumerable<ValueTuple<CkModelIdVersionRange, CkModelId>> constraints, string visibleVersions)

Parameters​

modelName String

constraints IEnumerable<ValueTuple<CkModelIdVersionRange, CkModelId>>

visibleVersions String

Returns​

Exception