示例#1
0
        public NugetProblem AddProblem(AggregateException aggregate)
        {
            var message = "Fatal error";
            Exception exception = aggregate;
            if (aggregate != null)
            {
                exception = aggregate.Flatten();
                message = exception.Message;

                if (exception.InnerException != null)
                {
                    exception = exception.InnerException;
                    message = exception.Message;
                }
            }

            var problem = new NugetProblem(message, exception);
            AddProblem(problem);

            return problem;
        }
示例#2
0
        public NugetProblem AddProblem(AggregateException aggregate)
        {
            var       message   = "Fatal error";
            Exception exception = aggregate;

            if (aggregate != null)
            {
                exception = aggregate.Flatten();
                message   = exception.Message;

                if (exception.InnerException != null)
                {
                    exception = exception.InnerException;
                    message   = exception.Message;
                }
            }

            var problem = new NugetProblem(message, exception);

            AddProblem(problem);

            return(problem);
        }
示例#3
0
 public void AddProblem(NugetProblem problem)
 {
     _problems.Add(problem);
 }
示例#4
0
 public void AddProblem(NugetProblem problem)
 {
     _problems.Add(problem);
 }