Beispiel #1
0
 public object Evaluate(TagModel model)
 {
     try
     {
         return(_tag.Evaluate(model));
     }
     catch (ExceptionWithContext ewc)
     {
         if (ewc.Context == null)
         {
             throw ExceptionWithContext.MakePartial(ewc).Decorate(_tag.Context);
         }
         throw;
     }
     catch (Exception e)
     {
         throw TagException.EvaluationError(e).Decorate(_tag.Context);
     }
 }