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>)
internal static Exception UnknownCkTypeId(CkId<CkTypeId> ckTypeId)
Parameters
ckTypeId CkId<CkTypeId>
Returns
UnknownCkRecordId(CkId<CkRecordId>)
internal static Exception UnknownCkRecordId(CkId<CkRecordId> ckRecordId)
Parameters
ckRecordId CkId<CkRecordId>
Returns
UnknownCkTypeIdForAssociationTarget(CkId<CkTypeId>, CkId<CkAssociationRoleId>, CkId<CkTypeId>)
internal static Exception UnknownCkTypeIdForAssociationTarget(CkId<CkTypeId> originCkTypeId, CkId<CkAssociationRoleId> entityAssociationRoleId, CkId<CkTypeId> typeAssociationTargetCkTypeId)
Parameters
originCkTypeId CkId<CkTypeId>
entityAssociationRoleId CkId<CkAssociationRoleId>
typeAssociationTargetCkTypeId CkId<CkTypeId>
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>)
AB#5661: 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
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>