Skip to main content

FormulaEvaluationException

Namespace: Meshmakers.Octo.Runtime.Contracts.Formulas

Thrown by IFormulaEngine.EvaluateRaw(String, IReadOnlyDictionary<String, Double>) / IFormulaEngine.EvaluateRaw(String, IReadOnlyDictionary<String, Double>) when the evaluation of a formula was aborted by an exception (e.g. an OutOfMemoryException) instead of producing a result. It is never thrown for a formula that legitimately yields no value — a NULL operand, the null constant, a division by zero (NaN); those still yield NaN / null. A caller must not store NULL for this exception: the value is unknown, not empty.

public sealed class FormulaEvaluationException : Exception, ISerializable

Inheritance Object → Exception → FormulaEvaluationException
Implements ISerializable

Properties​

Expression​

The formula whose evaluation failed.

public string Expression { get; }

Property Value​

String

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​

FormulaEvaluationException(String, String, Exception)​

Creates the exception for expression with the engine's failure description.

public FormulaEvaluationException(string expression, string message, Exception innerException)

Parameters​

expression String

message String

innerException Exception