/// <summary>
 ///     Sets the formula function result to an error
 /// </summary>
 /// <param name="value">The type of the error you wish to be the result of the function</param>
 /// <remarks>Use this method when you need to return an error as the result of your function</remarks>
 public void SetError(ErrorValueType value)
 {
     MyOperand = new ErrorValueOperand(value);
 }
Exemple #2
0
 public ErrorValue(ErrorValueType errorValueType)
 {
     _errorValueType = errorValueType;
 }
 internal ErrorValueWrapper(ErrorValueType value)
 {
     _errorValue = value;
 }
 /// <summary>
 ///     Creates an error wrapper around a specified error type
 /// </summary>
 /// <param name="errorType">The type of error to create a wrapper for</param>
 /// <returns>A wrapper around the error</returns>
 /// <remarks>This function lets you create an error wrapper around a specific error type</remarks>
 public static ErrorValueWrapper CreateError(ErrorValueType errorType)
 {
     return(new ErrorValueWrapper(errorType));
 }
Exemple #5
0
 /// <summary>
 ///     Sets the error that will be reported at the end of processing
 /// </summary>
 /// <param name="errorType">The type of error to set</param>
 /// <remarks>
 ///     Derived classes can use this method when they encounter an error during argument processing.  When processing is
 ///     finished,
 ///     this value will be returned by the <see cref="P:FormulaEngineCore.Processors.VariableArgumentFunctionProcessor.ErrorValue" /> property to
 ///     callers who
 ///     need to know why processing failed.
 /// </remarks>
 protected void SetError(ErrorValueType errorType)
 {
     ErrorValue = errorType;
 }
 public ErrorValueOperand(ErrorValueType value)
 {
     ValueAsErrorType = value;
 }