Skip to main content

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>)​

internal static Exception UnknownCkTypeId(CkId<CkTypeId> ckTypeId)

Parameters​

ckTypeId CkId<CkTypeId>

Returns​

Exception

UnknownCkRecordId(CkId<CkRecordId>)​

internal static Exception UnknownCkRecordId(CkId<CkRecordId> ckRecordId)

Parameters​

ckRecordId CkId<CkRecordId>

Returns​

Exception

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​

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>)​

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​

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