Skip to main content

CompilerException

Namespace: Meshmakers.Octo.ConstructionKit.Contracts

Used to indicate an exception during compiler operations

public class CompilerException : Exception, ISerializable

Inheritance Object → Exception → CompilerException
Implements ISerializable

Properties​

OperationResult​

The CompilerException.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

Constructors​

CompilerException(OperationResult)​

Creates a new instance of CompilerException

public CompilerException(OperationResult operationResult)

Parameters​

operationResult OperationResult

CompilerException(String, OperationResult)​

Creates a new instance of CompilerException

public CompilerException(string message, OperationResult operationResult)

Parameters​

message String

operationResult OperationResult

CompilerException(String, Exception, OperationResult)​

Creates a new instance of CompilerException

public CompilerException(string message, Exception inner, OperationResult operationResult)

Parameters​

message String

inner Exception

operationResult OperationResult

Methods​

OperationResultWithErrors(OperationResult)​

internal static Exception OperationResultWithErrors(OperationResult operationResult)

Parameters​

operationResult OperationResult

Returns​

Exception

PublishFailedWithErrors(String, CkModelId, IEnumerable<OperationMessage>, OperationResult)​

The model could not be resolved, so it was NOT written to the catalog. Carries the resolve messages both in the exception text (so a caller that only logs Exception.Message stays actionable) and in CompilerException.OperationResult.

internal static Exception PublishFailedWithErrors(string catalogName, CkModelId ckModelId, IEnumerable<OperationMessage> resolveMessages, OperationResult operationResult)

Parameters​

catalogName String

ckModelId CkModelId

resolveMessages IEnumerable<OperationMessage>

operationResult OperationResult

Returns​

Exception

DirectoryMustBeEmpty(String, OperationResult)​

internal static Exception DirectoryMustBeEmpty(string rootPath, OperationResult operationResult)

Parameters​

rootPath String

operationResult OperationResult

Returns​

Exception

DirectoryDoesNotExist(String, OperationResult)​

internal static Exception DirectoryDoesNotExist(string rootPath, OperationResult operationResult)

Parameters​

rootPath String

operationResult OperationResult

Returns​

Exception

FileDoesNotExist(String, OperationResult)​

internal static Exception FileDoesNotExist(string modelPath, OperationResult operationResult)

Parameters​

modelPath String

operationResult OperationResult

Returns​

Exception

ModelParseFailed(String, ModelParseException, OperationResult)​

internal static Exception ModelParseFailed(string path, ModelParseException modelParseException, OperationResult operationResult)

Parameters​

path String

modelParseException ModelParseException

operationResult OperationResult

Returns​

Exception