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
Message
public string Message { get; }
Property Value
Data
public IDictionary Data { get; }
Property Value
InnerException
public Exception InnerException { get; }
Property Value
HelpLink
public string HelpLink { get; set; }
Property Value
Source
public string Source { get; set; }
Property Value
HResult
public int HResult { get; set; }
Property Value
StackTrace
public string StackTrace { get; }
Property Value
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
UnknownCkTypeId(CkId<CkTypeId>, String)
internal static Exception UnknownCkTypeId(CkId<CkTypeId> ckTypeId, string hint)
Parameters
ckTypeId CkId<CkTypeId>
hint String
Returns
UnknownCkRecordId(CkId<CkRecordId>, String)
internal static Exception UnknownCkRecordId(CkId<CkRecordId> ckRecordId, string hint)
Parameters
ckRecordId CkId<CkRecordId>
hint String
Returns
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
DerivedFromCkTypeIdThatIsFinal(CkId<CkTypeId>, CkId<CkTypeId>)
internal static Exception DerivedFromCkTypeIdThatIsFinal(CkId<CkTypeId> currentCkTypeId, CkId<CkTypeId> lastCkTypeId)
Parameters
currentCkTypeId CkId<CkTypeId>
lastCkTypeId CkId<CkTypeId>
Returns
InheritanceMissing(String)
internal static Exception InheritanceMissing(string typeId)
Parameters
typeId String
Returns
ModelIdContainsInvalidCharacters(String)
internal static Exception ModelIdContainsInvalidCharacters(string modelId)
Parameters
modelId String
Returns
DerivedFromCkRecordIdThatIsFinal(CkId<CkRecordId>, CkId<CkRecordId>)
internal static Exception DerivedFromCkRecordIdThatIsFinal(CkId<CkRecordId> currentCkRecordId, CkId<CkRecordId> lastCkRecordId)
Parameters
currentCkRecordId CkId<CkRecordId>
lastCkRecordId CkId<CkRecordId>
Returns
UnknownCkRecordIdForInheritance(CkId<CkRecordId>)
internal static Exception UnknownCkRecordIdForInheritance(CkId<CkRecordId> ckRecordId)
Parameters
ckRecordId CkId<CkRecordId>
Returns
DuplicateAttributeNamesInCkRecord(CkId<CkRecordId>, IEnumerable<String>)
internal static Exception DuplicateAttributeNamesInCkRecord(CkId<CkRecordId> ckRecordId, IEnumerable<string> select)
Parameters
ckRecordId CkId<CkRecordId>
select IEnumerable<String>
Returns
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
UnknownCkModel(CkModelIdVersionRange)
internal static Exception UnknownCkModel(CkModelIdVersionRange ckDependency)
Parameters
ckDependency CkModelIdVersionRange
Returns
UnknownCkModels(IReadOnlyCollection<CkModelIdVersionRange>)
internal static Exception UnknownCkModels(IReadOnlyCollection<CkModelIdVersionRange> resolveResultUnresolvedDependencyModelIds)
Parameters
resolveResultUnresolvedDependencyModelIds IReadOnlyCollection<CkModelIdVersionRange>
Returns
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
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
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
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
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
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