Ejemplo n.º 1
0
        private static IEnumerable <ExceptionEntry> FromMethodBase(MethodBase source)
        {
            if (source is null)
            {
                return(null);
            }

            return(ExceptionEntry.FromAssignments(ExceptionEntry.GetProperties(source)));
        }
Ejemplo n.º 2
0
        public static IEnumerable <ExceptionEntry> FromException(Exception source)
        {
            if (source is null)
            {
                return(null);
            }

            try
            {
                return(ExceptionEntry.FromAssignments(ExceptionEntry.GetProperties(source)));
            }
            catch (Exception error)
            {
                System.Diagnostics.Debug.WriteLine(error);
                return(null);
            }
        }