private IEnumerable <Trace> Build(Exception exception, string description)
        {
            var result = new List <Trace>(2);

            result.Add(_traceBuilder.CreateFromException(exception, description));
            return(result);
        }
Пример #2
0
        //--- Methods ---
        public Body CreateFromException(Exception exception, string description)
        {
            if (exception.InnerException == null)
            {
                var trace = _traceBuilder.CreateFromException(exception, description);
                return(new Body(trace));
            }
            var traces = _traceChainBuilder.CreateFromException(exception, description);

            return(new Body(traces));
        }