Example #1
0
 private static void AppendErrorDetails(StringBuilder errmsg, ExpressionEvaluationException expressionException)
 {
     errmsg.Append("   ");
     errmsg.AppendLine(expressionException.expression);
     if (expressionException.previousExceptionInStack != null)
     {
         AppendErrorDetails(errmsg, expressionException.previousExceptionInStack);
     }
     else if (expressionException.InnerException != null)
     {
         errmsg.AppendLine(expressionException.InnerException.ToString());
     }
 }
Example #2
0
 public ExpressionEvaluationException(string expression, ExpressionEvaluationException previousExceptionInStack)
 {
     this.expression = expression;
     this.previousExceptionInStack = previousExceptionInStack;
     this.template = previousExceptionInStack.template;
     this.inputComponent = previousExceptionInStack.inputComponent;
 }