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()); } }
public ExpressionEvaluationException(string expression, ExpressionEvaluationException previousExceptionInStack) { this.expression = expression; this.previousExceptionInStack = previousExceptionInStack; this.template = previousExceptionInStack.template; this.inputComponent = previousExceptionInStack.inputComponent; }