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