Exemple #1
0
        private static ExceptionInfo BuildExceptionInfo(IEnumerable <ThrowsExceptionAttribute> att)
        {
            if (att.Any())
            {
                var ei = new ExceptionInfo();

                foreach (var e in att)
                {
                    ei.Add(e.Exception);
                }

                return(ei);
            }

            return(new ExceptionInfo());
        }