Beispiel #1
0
        private static SqlException ParseException(Exception exception)
        {
            IEnumerable <Exception> exceptions = EnumerableUtility.Concat(EnumerableUtility.Yield(exception), ExceptionUtility.Flatten(exception));

            return(EnumerableUtility.FindAll(exceptions, MatchSqlException).Cast <SqlException>().FirstOrDefault());
        }