Zum Hauptinhalt springen

ModelParseException

Namespace: Meshmakers.Octo.ConstructionKit.Contracts

Used to indicate an exception during model parsing operations

public class ModelParseException : CkModelException, ISerializable

Inheritance Object → Exception → CkModelException → ModelParseException
Implements ISerializable

Properties​

OperationResult​

The ModelParseException.OperationResult that caused the exception

public OperationResult OperationResult { get; }

Property Value​

OperationResult

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

Methods​

UnexpectedToken(String, JsonTokenType, String)​

internal static Exception UnexpectedToken(string elementName, JsonTokenType readerTokenType, string expectedString)

Parameters​

elementName String

readerTokenType JsonTokenType

expectedString String

Returns​

Exception

UnexpectedToken(String, JsonToken, String)​

internal static Exception UnexpectedToken(string elementName, JsonToken readerTokenType, string expectedString)

Parameters​

elementName String

readerTokenType JsonToken

expectedString String

Returns​

Exception

ValueCannotBeEmpty(String)​

internal static Exception ValueCannotBeEmpty(string elementName)

Parameters​

elementName String

Returns​

Exception

CannotDeserializeModel(String, OperationResult, Exception)​

internal static Exception CannotDeserializeModel(string locationReference, OperationResult operationResult, Exception e)

Parameters​

locationReference String

operationResult OperationResult

e Exception

Returns​

Exception

DeserializedModelWasNull(String, OperationResult)​

internal static Exception DeserializedModelWasNull(string locationReference, OperationResult operationResult)

Parameters​

locationReference String

operationResult OperationResult

Returns​

Exception

SchemaValidationFailed(String, OperationResult)​

internal static Exception SchemaValidationFailed(string locationReference, OperationResult operationResult)

Parameters​

locationReference String

operationResult OperationResult

Returns​

Exception